From c6e51ee3c104543516adace39c9a7c561862ec25 Mon Sep 17 00:00:00 2001 From: caiodasilva2005 Date: Thu, 19 Sep 2024 22:41:58 -0400 Subject: [PATCH] #2770- added await --- src/backend/tests/unmocked/users.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/tests/unmocked/users.test.ts b/src/backend/tests/unmocked/users.test.ts index 17a503ae8b..2f43d991f7 100644 --- a/src/backend/tests/unmocked/users.test.ts +++ b/src/backend/tests/unmocked/users.test.ts @@ -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')); }); it("Succeeds and gets user's assigned tasks", async () => {