Treat {verboseDeprecations: undefined} as a no-op, like other boolean config props
This commit is contained in:
@@ -156,7 +156,8 @@ getJasmineRequireObj().Configuration = function(j$) {
|
||||
'stopSpecOnExpectationFailure',
|
||||
'autoCleanClosures',
|
||||
'forbidDuplicateNames',
|
||||
'detectLateRejectionHandling'
|
||||
'detectLateRejectionHandling',
|
||||
'verboseDeprecations'
|
||||
];
|
||||
|
||||
for (const k of booleanProps) {
|
||||
@@ -173,12 +174,6 @@ getJasmineRequireObj().Configuration = function(j$) {
|
||||
if (typeof changes.seed !== 'undefined') {
|
||||
this.#values.seed = changes.seed;
|
||||
}
|
||||
|
||||
// TODO: in the next major release, make verboseDeprecations work like
|
||||
// other boolean properties.
|
||||
if (changes.hasOwnProperty('verboseDeprecations')) {
|
||||
this.#values.verboseDeprecations = changes.verboseDeprecations;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user