Skip to content

Commit

Permalink
test: 🧪 return undefined to return null
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Nov 19, 2024
1 parent 41458b8 commit 3886d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/users/application/src/lib/users.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 3886d0d

Please sign in to comment.