Skip to content

Commit

Permalink
Merge pull request #1296 from kulshekhar/housekeeping
Browse files Browse the repository at this point in the history
Fix linting and update deps to address vulnerabilities
  • Loading branch information
kulshekhar authored Nov 22, 2019
2 parents 7c45717 + 33cee64 commit d2bad6a
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 206 deletions.
33 changes: 15 additions & 18 deletions e2e/__helpers__/test-case/run-descriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,21 @@ export default class RunDescriptor {
if (!templates.every((t, i) => templates.indexOf(t, i + 1) === -1)) {
throw new Error(`Each template must be unique. Given ${templates.join(', ')}`)
}
return templates.reduce(
(map, template) => {
const desc = new RunDescriptor(this.name, {
...this._options,
template,
})
const runTest = () => {
return (map[template] = desc.run(expectedStatus))
}
if (iterator) {
iterator(runTest, createIteratorContext(template, expectedStatus))
} else {
runTest()
}
return map
},
{} as TestRunResultsMap<T>,
)
return templates.reduce((map, template) => {
const desc = new RunDescriptor(this.name, {
...this._options,
template,
})
const runTest = () => {
return (map[template] = desc.run(expectedStatus))
}
if (iterator) {
iterator(runTest, createIteratorContext(template, expectedStatus))
} else {
runTest()
}
return map
}, {} as TestRunResultsMap<T>)
}
}

Expand Down
Loading

0 comments on commit d2bad6a

Please sign in to comment.