Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pimm committed Sep 10, 2024
1 parent 905d289 commit 734f57f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/resources/methods.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('methods', () => {
})
.catch(err => {
expect(err).toBeInstanceOf(ApiError);
expect(err.getMessage()).toEqual(error.detail);
expect(err.message).toEqual(error.detail);
});
});
});
Expand All @@ -57,7 +57,7 @@ describe('methods', () => {
return new Promise<void>(resolve => {
methods.get('foo', {}, (err: any, result) => {
expect(err).toBeInstanceOf(ApiError);
expect(err.getMessage()).toEqual(error.detail);
expect(err.message).toEqual(error.detail);
expect(result).toBeUndefined();
resolve();
});
Expand Down

0 comments on commit 734f57f

Please sign in to comment.