Skip to content

Commit

Permalink
#2770- added await
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Sep 20, 2024
1 parent bc54c1e commit c6e51ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/tests/unmocked/users.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('User Tests', () => {

describe('Get Users Tasks', () => {
it('fails on invalid user id', async () => {
expect(UsersService.getUserTasks('1', organization)).rejects.toThrow(new NotFoundException('User', '1'));
expect(await UsersService.getUserTasks('1', organization)).rejects.toThrow(new NotFoundException('User', '1'));

Check failure on line 21 in src/backend/tests/unmocked/users.test.ts

View workflow job for this annotation

GitHub Actions / run-linting-check

Async assertions must be awaited or returned
});

it("Succeeds and gets user's assigned tasks", async () => {
Expand Down

0 comments on commit c6e51ee

Please sign in to comment.