From 80482ab028037354dcf0384dfc9f63ff9d18e6ab Mon Sep 17 00:00:00 2001 From: praju-aot Date: Fri, 29 Sep 2023 12:52:32 -0400 Subject: [PATCH] Fix Test Cases --- backend/vehicles/test/unit/users/users.service.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/vehicles/test/unit/users/users.service.spec.ts b/backend/vehicles/test/unit/users/users.service.spec.ts index f2ce60a8d..1588e59e7 100644 --- a/backend/vehicles/test/unit/users/users.service.spec.ts +++ b/backend/vehicles/test/unit/users/users.service.spec.ts @@ -235,10 +235,10 @@ describe('UsersService', () => { describe('User service getRolesForUser function', () => { it('should get the user Roles', async () => { repo.query.mockResolvedValue([ - { ROLE_ID: Role.READ_SELF }, - { ROLE_ID: Role.READ_USER }, - { ROLE_ID: Role.WRITE_SELF }, - { ROLE_ID: Role.WRITE_USER }, + { ROLE_TYPE: Role.READ_SELF }, + { ROLE_TYPE: Role.READ_USER }, + { ROLE_TYPE: Role.WRITE_SELF }, + { ROLE_TYPE: Role.WRITE_USER }, ]); const retUserRoles = await service.getRolesForUser(