Skip to content

Commit

Permalink
node 6 changed debugger message
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 31, 2016
1 parent e775e69 commit e1d5cb8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/debug-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ var stde = ''
var done = false
child.stderr.on('data', function (c) {
stde += c
if (stde.indexOf('ebugger listening on port') !== -1) {
t.pass('Should output debugger message')
done = true
child.kill()
}
})
child.stderr.on('end', function () {
if (!done) {
t.fail('did not find debugger message')
}
t.match(stde, /debugger listening on/i, 'got debugger message')
})

0 comments on commit e1d5cb8

Please sign in to comment.