File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 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') {
66 var expect = chai . expect ;
77
88 var debug = require ( '../src/index' ) ;
9- var = require ( 'sinon' ) ;
9+ var sinon = require ( 'sinon' ) ;
1010 var sinonChai = require ( "sinon-chai" ) ;
1111 chai . use ( sinonChai ) ;
1212}
@@ -36,20 +36,20 @@ describe('debug', function () {
3636 } ) ;
3737 } ) ;
3838
39- describe ( 'custom functions' , ( ) => {
40- let log ;
39+ describe ( 'custom functions' , function ( ) {
40+ var log ;
4141
42- beforeEach ( ( ) => {
42+ beforeEach ( function ( ) {
4343 debug . enable ( 'test' ) ;
4444 log = debug ( 'test' ) ;
4545 } ) ;
4646
47- context ( 'with log function' , ( ) => {
48- it ( 'uses it' , ( ) => {
47+ context ( 'with log function' , function ( ) {
48+ it ( 'uses it' , function ( ) {
4949 log . log = sinon . spy ( ) ;
5050 log ( 'using custom log function' ) ;
5151
52- chai . assert . calledOnce ( log . log ) ;
52+ expect ( log . log ) . to . have . been . calledOnce ;
5353 } ) ;
5454 } ) ;
5555 } ) ;
You can’t perform that action at this time.
0 commit comments