File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const middleware = require('../../');
8
8
describe ( 'CompilerCallbacks' , ( ) => {
9
9
const hook = { tap : ( ) => { } } ;
10
10
const logLevel = 'silent' ;
11
- const sandbox = sinon . sandbox . create ( ) ;
11
+ const sandbox = sinon . createSandbox ( ) ;
12
12
const compiler = {
13
13
watch ( ) { } ,
14
14
hooks : {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ describe('Lazy mode', () => {
26
26
} ;
27
27
} ;
28
28
const logLevel = 'silent' ;
29
- const sandbox = sinon . sandbox . create ( ) ;
29
+ const sandbox = sinon . createSandbox ( ) ;
30
30
const res = { } ;
31
31
const compiler = {
32
32
hooks : {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ describe('Logging', () => {
29
29
}
30
30
31
31
it ( 'should log' , ( ) => {
32
- const sandbox = sinon . sandbox . create ( ) ;
32
+ const sandbox = sinon . createSandbox ( ) ;
33
33
const infoSpy = sandbox . spy ( console , 'info' ) ;
34
34
const warnSpy = sandbox . spy ( console , 'warn' ) ;
35
35
const errorSpy = sandbox . spy ( console , 'error' ) ;
@@ -59,7 +59,7 @@ describe('Logging', () => {
59
59
// testing
60
60
weblog . delLogger ( 'wdm' ) ;
61
61
62
- const sandbox = sinon . sandbox . create ( ) ;
62
+ const sandbox = sinon . createSandbox ( ) ;
63
63
const info = sandbox . spy ( console , 'info' ) ;
64
64
const instance = middleware ( compiler , { logTime : true } ) ;
65
65
const { log } = instance . context ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ describe('Reporter', () => {
21
21
}
22
22
} ;
23
23
} ;
24
- const sandbox = sinon . sandbox . create ( ) ;
24
+ const sandbox = sinon . createSandbox ( ) ;
25
25
const defaults = { logLevel : 'silent' } ;
26
26
const compiler = {
27
27
watch ( ) {
You can’t perform that action at this time.
0 commit comments