Coerce the random string to a seed before sending it to reporters

This fixes an error in HTMLReporter when the configured seed is a
number rather than a string, which has been allowed since 3.8.0
This commit is contained in:
Steve Gravrock
2022-09-03 12:36:35 -07:00
parent c14bfe3e5f
commit 59848ca151
3 changed files with 25 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ getJasmineRequireObj().Runner = function(j$) {
const order = new j$.Order({
random: config.random,
seed: config.seed
seed: j$.isNumber_(config.seed) ? config.seed + '' : config.seed
});
const processor = new j$.TreeProcessor({