Skip to content

Commit 5ed7b0e

Browse files
committed
Merge pull request react-bootstrap#598 from AlexKVal/fixForTests
Show test title in afterEach() hook.
2 parents bf19f8a + 4860596 commit 5ed7b0e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ beforeEach(function() {
66

77
afterEach(function() {
88
if (typeof console.warn.restore === 'function') {
9-
assert(!console.warn.called, () => console.warn.getCall(0).args[0]);
9+
assert(!console.warn.called, () => {
10+
return `${console.warn.getCall(0).args[0]} \nIn '${this.currentTest.fullTitle()}'`;
11+
});
1012
console.warn.restore();
1113
}
1214
});

0 commit comments

Comments
 (0)