Skip to content

Commit

Permalink
Fix logging from afterEach hook in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Oct 16, 2015
1 parent 44182b7 commit b2c5d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ beforeEach(() => {
sinon.stub(console, 'error');
});

afterEach(() => {
afterEach(function checkNoUnexpectedWarnings() {
if (typeof console.error.restore === 'function') {
assert(!console.error.called, () => {
return `${console.error.getCall(0).args[0]} \nIn '${this.currentTest.fullTitle()}'`;
Expand Down

0 comments on commit b2c5d65

Please sign in to comment.