Skip to content

Commit

Permalink
test: update args for task.run calls that have destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
apaleslimghost committed Jul 25, 2024
1 parent 0042f7f commit 4375316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/eslint/test/tasks/eslint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('eslint', () => {
}
)

await expect(task.run()).resolves.toBeUndefined()
await expect(task.run({ command: 'test:local' })).resolves.toBeUndefined()
})

it('should fail on linter error', async () => {
Expand All @@ -56,7 +56,7 @@ describe('eslint', () => {
}
)

await expect(task.run()).rejects.toHaveProperty(
await expect(task.run({ command: 'test:local' })).rejects.toHaveProperty(
'details',
expect.stringContaining('1 problem (1 error, 0 warnings)')
)
Expand Down
4 changes: 2 additions & 2 deletions plugins/prettier/test/tasks/prettier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('prettier', () => {
ignoreFile: 'nonexistent prettierignore'
}
)
await task.run()
await task.run({ command: 'format:local' })
const prettified = await fsp.readFile(path.join(testDirectory, 'unformatted.ts'), 'utf8')
expect(prettified).toEqual(formattedDefaultFixture)
})
Expand All @@ -56,7 +56,7 @@ describe('prettier', () => {
}
)

await task.run()
await task.run({ command: 'format:local' })
const prettified = await fsp.readFile(path.join(testDirectory, 'unformatted.ts'), 'utf8')
expect(prettified).toEqual(formattedConfigFileFixture)
})
Expand Down

0 comments on commit 4375316

Please sign in to comment.