@@ -233,11 +233,15 @@ describe('javascript-sdk', function() {
233
233
234
234
describe ( 'automatically created logger instances' , function ( ) {
235
235
beforeEach ( function ( ) {
236
- sinon . spy ( console , 'log' )
236
+ sinon . spy ( console , 'log' ) ;
237
+ sinon . spy ( console , 'info' ) ;
238
+ sinon . spy ( console , 'warn' ) ;
237
239
} ) ;
238
240
239
241
afterEach ( function ( ) {
240
242
console . log . restore ( ) ;
243
+ console . info . restore ( ) ;
244
+ console . warn . restore ( ) ;
241
245
} ) ;
242
246
243
247
it ( 'should instantiate the logger with a custom logLevel when provided' , function ( ) {
@@ -264,10 +268,10 @@ describe('javascript-sdk', function() {
264
268
datafile : testData . getTestProjectConfig ( ) ,
265
269
skipJSONValidation : true
266
270
} ) ;
267
- assert . strictEqual ( console . log . getCalls ( ) . length , 1 )
268
- call = console . log . getCalls ( ) [ 0 ]
269
- assert . strictEqual ( call . args . length , 1 )
270
- assert ( call . args [ 0 ] . indexOf ( 'OPTIMIZELY: Skipping JSON schema validation.' ) > - 1 )
271
+ assert . strictEqual ( console . info . getCalls ( ) . length , 1 ) ;
272
+ call = console . info . getCalls ( ) [ 0 ] ;
273
+ assert . strictEqual ( call . args . length , 1 ) ;
274
+ assert ( call . args [ 0 ] . indexOf ( 'OPTIMIZELY: Skipping JSON schema validation.' ) > - 1 ) ;
271
275
} ) ;
272
276
} ) ;
273
277
} ) ;
0 commit comments