Skip to content

Commit b2c5d65

Browse files
committed
Fix logging from afterEach hook in tests
1 parent 44182b7 commit b2c5d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ beforeEach(() => {
44
sinon.stub(console, 'error');
55
});
66

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

0 commit comments

Comments
 (0)