Skip to content

Commit 38077ef

Browse files
test(sinon): fix deprecation warnings
1 parent b6cf7ab commit 38077ef

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

test/tests/compiler-callbacks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const middleware = require('../../');
88
describe('CompilerCallbacks', () => {
99
const hook = { tap: () => {} };
1010
const logLevel = 'silent';
11-
const sandbox = sinon.sandbox.create();
11+
const sandbox = sinon.createSandbox();
1212
const compiler = {
1313
watch() {},
1414
hooks: {

test/tests/lazy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('Lazy mode', () => {
2626
};
2727
};
2828
const logLevel = 'silent';
29-
const sandbox = sinon.sandbox.create();
29+
const sandbox = sinon.createSandbox();
3030
const res = {};
3131
const compiler = {
3232
hooks: {

test/tests/log.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Logging', () => {
2929
}
3030

3131
it('should log', () => {
32-
const sandbox = sinon.sandbox.create();
32+
const sandbox = sinon.createSandbox();
3333
const infoSpy = sandbox.spy(console, 'info');
3434
const warnSpy = sandbox.spy(console, 'warn');
3535
const errorSpy = sandbox.spy(console, 'error');
@@ -59,7 +59,7 @@ describe('Logging', () => {
5959
// testing
6060
weblog.delLogger('wdm');
6161

62-
const sandbox = sinon.sandbox.create();
62+
const sandbox = sinon.createSandbox();
6363
const info = sandbox.spy(console, 'info');
6464
const instance = middleware(compiler, { logTime: true });
6565
const { log } = instance.context;

test/tests/reporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('Reporter', () => {
2121
}
2222
};
2323
};
24-
const sandbox = sinon.sandbox.create();
24+
const sandbox = sinon.createSandbox();
2525
const defaults = { logLevel: 'silent' };
2626
const compiler = {
2727
watch() {

0 commit comments

Comments
 (0)