You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

11 lines
434 B

const fixture = require('source-map-fixtures').inline('throws').require();
const test = require('../../');
// The uncaught exception is passed to the corresponding cli test. The line
// numbers from the 'throws' fixture (using an inline source map), as well as
// the line of the fixture.run() call, should match the source lines.
test('throw an uncaught exception', () => {
setImmediate(run);
});
const run = () => fixture.run();