Skip to content

Commit

Permalink
refactor(suite): use Object.assign (#3545)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Jun 13, 2023
1 parent 158c4bb commit f6222fc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/runner/src/suite.ts
Expand Up @@ -66,14 +66,8 @@ function createSuiteCollector(name: string, factory: SuiteFactory = () => { }, m
options = { timeout: options }

// inherit repeats, retry, timeout from suite
if (typeof suiteOptions === 'object') {
options = {
repeats: suiteOptions.repeats,
retry: suiteOptions.retry,
timeout: suiteOptions.timeout,
...options,
}
}
if (typeof suiteOptions === 'object')
options = Object.assign({}, suiteOptions, options)

const test: Test = {
id: '',
Expand Down

0 comments on commit f6222fc

Please sign in to comment.