Last active
June 4, 2017 12:23
-
-
Save Elergy/6b4471d244e1d7591ee0d1d9ff745d88 to your computer and use it in GitHub Desktop.
The test for https://github.com/mochajs/mocha/issues/2608
This file contains 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
var noop = function() {}; | |
describe('describe title', function() { | |
var i = 0; | |
beforeEach(function () { | |
if (i++ > 1) { | |
throw new Error('BEFORE EACH FAIL'); | |
} | |
}); | |
it('one', noop); | |
it('two', noop); | |
it('three', noop); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run the test, Mocha tells me: