From c89b354f63664a9982f49053f95b4a47f03a0f71 Mon Sep 17 00:00:00 2001 From: zhumeisongsong Date: Tue, 10 Dec 2024 17:08:52 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=A7=AA=20pass=20test=20cases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../interface-adapters/src/lib/dto/user-task.dto.spec.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libs/tasks/interface-adapters/src/lib/dto/user-task.dto.spec.ts b/libs/tasks/interface-adapters/src/lib/dto/user-task.dto.spec.ts index a5b1066..947ef1b 100644 --- a/libs/tasks/interface-adapters/src/lib/dto/user-task.dto.spec.ts +++ b/libs/tasks/interface-adapters/src/lib/dto/user-task.dto.spec.ts @@ -18,8 +18,7 @@ describe('UserTaskDto', () => { updatedAt, taskId, task, - userId, - user, + userId ); expect(userTaskDto.id).toBe(id); @@ -28,7 +27,6 @@ describe('UserTaskDto', () => { expect(userTaskDto.taskId).toBe(taskId); expect(userTaskDto.task).toBe(task); expect(userTaskDto.userId).toBe(userId); - expect(userTaskDto.user).toBe(user); }); it('should create a UserTaskDto instance with null values', () => { @@ -46,8 +44,7 @@ describe('UserTaskDto', () => { updatedAt, taskId, task, - userId, - user, + userId ); expect(userTaskDto.id).toBe(id); @@ -56,6 +53,5 @@ describe('UserTaskDto', () => { expect(userTaskDto.taskId).toBe(taskId); expect(userTaskDto.task).toBeNull(); expect(userTaskDto.userId).toBe(userId); - expect(userTaskDto.user).toBeNull(); }); });