Created
May 30, 2015 14:46
-
-
Save simov/c56e24e419d509d8951a to your computer and use it in GitHub Desktop.
tape + tap-reporter = wrong events order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parser = require('tap-parser') // 1.1.4 | |
var p = parser() | |
process.stdin.pipe(p) | |
p.on('extra', function (line) { | |
console.log('extra', line) | |
}) | |
p.on('assert', function (line) { | |
console.log('assert', line) | |
}) | |
p.on('comment', function (line) { | |
console.log('comment', line) | |
}) | |
p.on('version', function (line) { | |
console.log('version', line) | |
}) | |
p.on('plan', function (line) { | |
console.log('plan', line) | |
}) | |
p.on('bailout', function (line) { | |
console.log('bailout', line) | |
}) | |
p.on('child', function (line) { | |
console.log('child', line) | |
}) | |
p.on('complete', function (results) { | |
console.log('complete', results) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var it = require('tape') // 4.0.0 | |
it('test 1-1', function (t) { | |
t.equal(2, 2, '1-1-1') | |
t.notEqual(2, 1, '1-2-2') | |
t.end() | |
}) | |
it('test 1-2', function (t) { | |
t.equal(2, 2, '1-2-1') | |
t.notEqual(2, 1, '1-2-2') | |
t.end() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment