diff --git a/src/backend/tests/unmocked/users.test.ts b/src/backend/tests/unmocked/users.test.ts index 2f43d991f7..e704de7a9c 100644 --- a/src/backend/tests/unmocked/users.test.ts +++ b/src/backend/tests/unmocked/users.test.ts @@ -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( + new NotFoundException('User', '1') + ); }); it("Succeeds and gets user's assigned tasks", async () => {