Permalink
Browse files

attempt to port to tape

  • Loading branch information...
1 parent 9fd4300 commit 5593372dc046cd3d31f1f18896257b4dea60ae26 @dominictarr committed Jan 6, 2013
View
@@ -80,3 +80,7 @@ exports ['connect returns a stream'] = function (test) {
)
}
+
+
+require('./helper')(module)
+
View
@@ -0,0 +1,12 @@
+var tape = require('tape')
+
+module.exports = function (m) {
+ if(m.parent) return
+ for(var name in m.exports) {
+ tape(name, function (t) {
+ console.log('start', name)
+ t.done = t.end
+ m.exports[name](t)
+ })
+ }
+}
View
@@ -18,3 +18,4 @@ exports.merge = function (t) {
es.merge(r1, r2).pipe(writer)
}
+require('./helper')(module)
View
@@ -36,3 +36,4 @@ exports ['gate buffers when shut'] = function (test) {
gate.resume()
}
+require('./helper')(module)
View
@@ -49,3 +49,4 @@ exports['3 pipe do not duplicate errors'] = function (test) {
}
+require('./helper')(module)
View
@@ -86,3 +86,4 @@ exports ['read one item per tick'] = function (test) {
})
}
+require('./helper')(module)
View
@@ -5,12 +5,18 @@ var es = require('../')
exports ['read an array'] = function (test) {
+
+ console.log('readable')
+ return test.end()
var readThis = u.map(3, 6, 100, u.id) //array of multiples of 3 < 100
+ console.log('readable')
+
var reader =
es.readable(function (i, callback) {
if(i >= readThis.length)
return this.emit('end')
+ console.log('readable')
callback(null, readThis[i])
})
@@ -165,3 +171,5 @@ exports ['emit multiple errors, with 2nd parameter (continueOnError)'] = functio
reader.pipe(writer)
}
*/
+
+require('./helper')(module)
View
@@ -48,3 +48,4 @@ exports ['fizz buzz replace'] = function (test) {
split.end()
}
+require('./helper')(module)
@@ -340,3 +340,4 @@ exports ['mapSync applied to a stream with filtering'] = function (test) {
}
+require('./helper')(module)
View
@@ -83,3 +83,4 @@ exports['end fast'] = function (test) {
*/
+require('./helper')(module)
View
@@ -44,3 +44,4 @@ exports ['es.split() works like String#split'] = function (test) {
}
+require('./helper')(module)
View
@@ -12,3 +12,4 @@ exports['handle buffer'] = function (t) {
}).write(new Buffer('HELLO'))
}
+require('./helper')(module)
@@ -28,3 +28,4 @@ exports ['writer is writable, but not readable'] = function (test) {
test.done()
}
+require('./helper')(module)

0 comments on commit 5593372

Please sign in to comment.