Skip to content

Commit

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

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

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
new NotFoundException('User', '1')
);
});

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

0 comments on commit 2b094be

Please sign in to comment.