From 3886d0d01a6d0d6e3369bfc97772eb4bcc4addaa Mon Sep 17 00:00:00 2001 From: zhumeisongsong Date: Tue, 19 Nov 2024 21:19:55 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=A7=AA=20return=20undefined=20to?= =?UTF-8?q?=20return=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/users/application/src/lib/users.service.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');