Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

attempt to port to tape

  • Loading branch information...
commit 5593372dc046cd3d31f1f18896257b4dea60ae26 1 parent 9fd4300
@dominictarr authored
View
4 test/connect.asynct.js
@@ -80,3 +80,7 @@ exports ['connect returns a stream'] = function (test) {
)
}
+
+
+require('./helper')(module)
+
View
12 test/helper/index.js
@@ -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
1  test/merge.asynct.js
@@ -18,3 +18,4 @@ exports.merge = function (t) {
es.merge(r1, r2).pipe(writer)
}
+require('./helper')(module)
View
1  test/pause.asynct.js
@@ -36,3 +36,4 @@ exports ['gate buffers when shut'] = function (test) {
gate.resume()
}
+require('./helper')(module)
View
1  test/pipeline.asynct.js
@@ -49,3 +49,4 @@ exports['3 pipe do not duplicate errors'] = function (test) {
}
+require('./helper')(module)
View
1  test/readArray.asynct.js
@@ -86,3 +86,4 @@ exports ['read one item per tick'] = function (test) {
})
}
+require('./helper')(module)
View
8 test/readable.asynct.js
@@ -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
1  test/replace.asynct.js
@@ -48,3 +48,4 @@ exports ['fizz buzz replace'] = function (test) {
split.end()
}
+require('./helper')(module)
View
1  test/simple-map.asynct.js
@@ -340,3 +340,4 @@ exports ['mapSync applied to a stream with filtering'] = function (test) {
}
+require('./helper')(module)
View
1  test/spec.asynct.js
@@ -83,3 +83,4 @@ exports['end fast'] = function (test) {
*/
+require('./helper')(module)
View
1  test/split.asynct.js
@@ -44,3 +44,4 @@ exports ['es.split() works like String#split'] = function (test) {
}
+require('./helper')(module)
View
1  test/stringify.js
@@ -12,3 +12,4 @@ exports['handle buffer'] = function (t) {
}).write(new Buffer('HELLO'))
}
+require('./helper')(module)
View
1  test/writeArray.asynct.js
@@ -28,3 +28,4 @@ exports ['writer is writable, but not readable'] = function (test) {
test.done()
}
+require('./helper')(module)
Please sign in to comment.
Something went wrong with that request. Please try again.