Last active
August 29, 2015 14:16
-
-
Save Marsup/126943747d55abf59e40 to your computer and use it in GitHub Desktop.
Weird lab bug
This file contains hidden or 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
it('fails', function (done) { | |
var script = Lab.script(); | |
script.experiment('test', function () { | |
script.test('1', function (finished) { | |
throw new Error('die'); | |
}); | |
}); | |
Lab.report(script, { output: false, assert: {} }, function (err, code, output) { | |
expect(code).to.equal(0); | |
done(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is an alternative that passes... so is the issue only when running report ?