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 authored and ivomurrell committed Sep 5, 2024
1 parent 5aa7327 commit aa27bc4
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 aa27bc4

Please sign in to comment.