-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for this.test.error() behavior in "after each" hooks
- cleanup `test/integration/hook-err.spec.js` - add default params for `runMochaJSONAsync()` helper - expand "to have passed/failed tests" assertions (for JSON reporter output) to allow matching against `fullTitle` prop - rename some fixtures to lowercase
- Loading branch information
Showing
8 changed files
with
62 additions
and
37 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
test/integration/fixtures/hooks/after-each-this-test-error.fixture.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
describe('fail the test from the "after each" hook', function() { | ||
it('should fail', function() { | ||
// but not here | ||
}); | ||
|
||
afterEach(function() { | ||
this.test.error(new Error('failing from after each')); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
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
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