Treat {verboseDeprecations: undefined} as a no-op, like other boolean config props

This commit is contained in:
Steve Gravrock
2025-09-14 09:51:21 -07:00
parent 4d3f6b272a
commit 3040abe23d
3 changed files with 6 additions and 37 deletions

View File

@@ -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;
}
}
}