Skip to content

Commit

Permalink
test: update error handling in command error tests to throw specific …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
msudgh committed Jan 2, 2025
1 parent a8f0bc0 commit 00ed8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Command: Handle errors', () => {
it('should throw error if CI env is true', async () => {
process.env.CI = 'true'
const error = new Error()
expect(() => handlerCommandError(error)).to.throw()
expect(() => handlerCommandError(error)).to.throw(error)
process.env.CI = undefined
})
})

0 comments on commit 00ed8c6

Please sign in to comment.