Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 16, 2024
1 parent c10d27e commit 977f27f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/runner/src/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ export function mergeContextFixtures(fixtures: Record<string, any>, context: { f
.map(([prop, value]) => {
const fixtureItem = { value } as FixtureItem

if (Array.isArray(value) && value.length >= 2
&& isObject(value[1])
&& Object.keys(value[1]).some(key => fixtureOptionKeys.includes(key))) {
if (
Array.isArray(value) && value.length >= 2
&& isObject(value[1])
&& Object.keys(value[1]).some(key => fixtureOptionKeys.includes(key))
) {
// fixture with options
Object.assign(fixtureItem, value[1])
fixtureItem.value = value[0]
Expand Down

0 comments on commit 977f27f

Please sign in to comment.