strong-debugger
Version:
DevTools Remote Debugging Protocol provider for Node.js and io.js
17 lines (15 loc) • 481 B
JavaScript
var l = require('./lab');
var dbg = l.Promise.promisifyAll(require('../'));
var expect = l.expect;
l.it('reports debugger status', function() {
expect(dbg.status()).to.eql({ running: false, port: null });
return dbg.startAsync(0)
.then(function(port) {
expect(dbg.status()).to.eql({ running: true, port: port });
return dbg.stopAsync();
})
.then(function() {
expect(dbg.status()).to.eql({ running: false, port: null });
});
});
;