Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1411 from taion/test-log-warnings
Browse files Browse the repository at this point in the history
Fix logging from afterEach hook in tests
  • Loading branch information
taion committed Oct 17, 2015
2 parents 044de07 + b2c5d65 commit 9f4e96b
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 9f4e96b

Please sign in to comment.