Skip to content

Commit 4cef6e5

Browse files
committed
added soundcloud
1 parent aacd3bb commit 4cef6e5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,16 @@ tape('read from http flickr', function (t) {
7171
})
7272
})
7373
})
74+
75+
tape('read from http soundcloud', function (t) {
76+
t.plan(3)
77+
var popeye = rahttp('http://ec-media.sndcdn.com/n3XThRUZN9E3?f10880d39085a94a0418a7ef61b03d5275edf83695e0cd6a5a31b904eeb57c5c37df72c67f624eac5cc7b9148a7732949a7077380d09e4681abff62837')
78+
var length = 10
79+
popeye.read(30, 10, function (err, buf) {
80+
t.error(err, 'url read without error')
81+
t.equal(buf.length, length)
82+
popeye.close(function (err) {
83+
t.error(err, 'url closed without error')
84+
})
85+
})
86+
})

0 commit comments

Comments
 (0)