File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ if (typeof module !== 'undefined') {
6
6
var expect = chai . expect ;
7
7
8
8
var debug = require ( '../src/index' ) ;
9
- var = require ( 'sinon' ) ;
9
+ var sinon = require ( 'sinon' ) ;
10
10
var sinonChai = require ( "sinon-chai" ) ;
11
11
chai . use ( sinonChai ) ;
12
12
}
@@ -36,20 +36,20 @@ describe('debug', function () {
36
36
} ) ;
37
37
} ) ;
38
38
39
- describe ( 'custom functions' , ( ) => {
40
- let log ;
39
+ describe ( 'custom functions' , function ( ) {
40
+ var log ;
41
41
42
- beforeEach ( ( ) => {
42
+ beforeEach ( function ( ) {
43
43
debug . enable ( 'test' ) ;
44
44
log = debug ( 'test' ) ;
45
45
} ) ;
46
46
47
- context ( 'with log function' , ( ) => {
48
- it ( 'uses it' , ( ) => {
47
+ context ( 'with log function' , function ( ) {
48
+ it ( 'uses it' , function ( ) {
49
49
log . log = sinon . spy ( ) ;
50
50
log ( 'using custom log function' ) ;
51
51
52
- chai . assert . calledOnce ( log . log ) ;
52
+ expect ( log . log ) . to . have . been . calledOnce ;
53
53
} ) ;
54
54
} ) ;
55
55
} ) ;
You can’t perform that action at this time.
0 commit comments