diff --git a/libs/users/application/src/lib/users.service.spec.ts b/libs/users/application/src/lib/users.service.spec.ts index 55f3842..5b53dd5 100644 --- a/libs/users/application/src/lib/users.service.spec.ts +++ b/libs/users/application/src/lib/users.service.spec.ts @@ -27,7 +27,7 @@ describe('UsersService', () => { expect(result).toEqual(user); }); - it('should return undefined if user is not found', async () => { + it('should return null if user is not found', async () => { jest.spyOn(service, 'findById').mockResolvedValue(null); const result = await service.findById('1');