Browse Source

handle errors (caused by e.g. console.log) in CLI tests

contingency-plan
Rich-Harris 9 years ago
parent
commit
c36432092d
  1. 8
      test/test.js

8
test/test.js

@ -308,8 +308,12 @@ describe( 'rollup', function () {
else {
var expected = sander.readFileSync( '_expected.js' ).toString();
assert.equal( code.trim(), expected.trim() );
done();
try {
assert.equal( code.trim(), expected.trim() );
done();
} catch ( err ) {
done( err );
}
}
});
});

Loading…
Cancel
Save