Skip to content

Commit

Permalink
(testing) export repitition time and global seed
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Mar 10, 2019
1 parent 1d0f426 commit 406ccda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import * as env from './environment.js'
import * as json from './json.js'

/* istanbul ignore next */
const envSeed = env.hasParam('--seed') ? Number.parseInt(env.getParam('--seed')) : null
export const envSeed = env.hasParam('--seed') ? Number.parseInt(env.getParam('--seed')) : null

export class TestCase {
constructor (moduleName, testName) {
Expand Down Expand Up @@ -53,7 +53,7 @@ export class TestCase {
// @ts-ignore
const perf = typeof performance === 'undefined' ? require('perf_hooks').performance : performance // eslint-disable-line no-undef

const repititionTime = Number(env.getParam('--repitition-time', '50'))
export const repititionTime = Number(env.getParam('--repitition-time', '50'))
const testFilter = env.getParam('--filter', null)
/* istanbul ignore next */
const testFilterRegExp = testFilter !== null ? new RegExp(testFilter) : new RegExp('.*')
Expand Down

0 comments on commit 406ccda

Please sign in to comment.