Skip to content

Commit ce9f3d9

Browse files
author
mcibique
committed
Fixed console.error() spy being registered twice
1 parent 2789f4e commit ce9f3d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit/globals.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import sinon from 'sinon';
22
import { expect } from 'chai';
33

44
beforeEach(function () {
5+
if (console.error.restore) {
6+
console.error.restore();
7+
}
58
sinon.spy(console, 'error');
69
});
710

0 commit comments

Comments
 (0)