Skip to content

Commit 9f4e96b

Browse files
committed
Merge pull request react-bootstrap#1411 from taion/test-log-warnings
Fix logging from afterEach hook in tests
2 parents 044de07 + b2c5d65 commit 9f4e96b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/index.js

Lines changed: 1 addition & 1 deletion
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)