We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf19f8a commit 4860596Copy full SHA for 4860596
1 file changed
test/index.js
@@ -6,7 +6,9 @@ beforeEach(function() {
6
7
afterEach(function() {
8
if (typeof console.warn.restore === 'function') {
9
- assert(!console.warn.called, () => console.warn.getCall(0).args[0]);
+ assert(!console.warn.called, () => {
10
+ return `${console.warn.getCall(0).args[0]} \nIn '${this.currentTest.fullTitle()}'`;
11
+ });
12
console.warn.restore();
13
}
14
});
0 commit comments