Skip to content

Commit

Permalink
chore: type
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 2, 2023
1 parent a6b05d7 commit e91a3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/useAxios/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ describe('useAxios', () => {
const { isLoading, isFinished, isAborted, execute, abort } = useAxios(url, config, options)
expect(isLoading.value).toBeFalsy()
execute('https://jsonplaceholder.typicode.com/todos/2').then((result) => {
expect(result.error.value?.message).toBe('aborted')
expect((result.error.value as Error)?.message).toBe('aborted')
expect(isFinished.value).toBeTruthy()
expect(isLoading.value).toBeFalsy()
expect(isAborted.value).toBeTruthy()
Expand Down

0 comments on commit e91a3b0

Please sign in to comment.