@@ -275,6 +275,23 @@ describe('Jasmine', function() {
275
275
} ) ;
276
276
} ) ;
277
277
278
+ it ( 'passes verboseDeprecations to jasmine-core when specified' , function ( ) {
279
+ this . configObject . verboseDeprecations = true ;
280
+ this . fixtureJasmine . loadConfig ( this . configObject ) ;
281
+
282
+ expect ( this . fixtureJasmine . env . configure ) . toHaveBeenCalledWith (
283
+ jasmine . objectContaining ( { verboseDeprecations : true } )
284
+ ) ;
285
+ } ) ;
286
+
287
+ it ( 'does not pass verboseDeprecations to jasmine-core when not specified' , function ( ) {
288
+ this . configObject . random = true ; // or set any other property
289
+ this . fixtureJasmine . loadConfig ( this . configObject ) ;
290
+
291
+ expect ( this . fixtureJasmine . env . configure ) . toHaveBeenCalled ( ) ;
292
+ expect ( this . fixtureJasmine . env . configure . calls . argsFor ( 0 ) [ 0 ] . verboseDeprecations )
293
+ . toBeUndefined ( ) ;
294
+ } ) ;
278
295
describe ( 'with jsLoader: "require"' , function ( ) {
279
296
it ( 'tells the loader not to always import' , async function ( ) {
280
297
this . configObject . jsLoader = 'require' ;
@@ -309,7 +326,7 @@ describe('Jasmine', function() {
309
326
describe ( 'with jsLoader undefined' , function ( ) {
310
327
it ( 'tells the loader not to always import' , async function ( ) {
311
328
this . configObject . jsLoader = undefined ;
312
-
329
+
313
330
this . fixtureJasmine . loadConfig ( this . configObject ) ;
314
331
await this . fixtureJasmine . loadSpecs ( ) ;
315
332
0 commit comments