Skip to content

Commit

Permalink
fix testing repeat location url
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Jahns committed Feb 20, 2020
1 parent cf559af commit 3a73d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const run = async (moduleName, name, f, i, numberOfTests) => {
times.sort((a, b) => a - b)
/* istanbul ignore next */
const againMessage = env.isBrowser
? ` - ${window.location.protocol}//${window.location.host}?filter=\\[${i + 1}/${tc._seed === null ? '' : `&seed=${tc._seed}`}`
? ` - ${window.location.href}?filter=\\[${i + 1}/${tc._seed === null ? '' : `&seed=${tc._seed}`}`
: `\nrepeat: npm run test -- --filter "\\[${i + 1}/" ${tc._seed === null ? '' : `--seed ${tc._seed}`}`
const timeInfo = (repeat && err === null)
? ` - ${times.length} repititions in ${duration.toFixed(2)}ms (best: ${times[0].toFixed(2)}ms, worst: ${array.last(times).toFixed(2)}ms, median: ${statistics.median(times).toFixed(2)}ms, average: ${statistics.average(times).toFixed(2)}ms)`
Expand Down

0 comments on commit 3a73d7e

Please sign in to comment.