Skip to content

Commit

Permalink
test: 🧪 pass test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Dec 10, 2024
1 parent 501b50a commit c89b354
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ describe('UserTaskDto', () => {
updatedAt,
taskId,
task,
userId,
user,
userId
);

expect(userTaskDto.id).toBe(id);
Expand All @@ -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', () => {
Expand All @@ -46,8 +44,7 @@ describe('UserTaskDto', () => {
updatedAt,
taskId,
task,
userId,
user,
userId
);

expect(userTaskDto.id).toBe(id);
Expand All @@ -56,6 +53,5 @@ describe('UserTaskDto', () => {
expect(userTaskDto.taskId).toBe(taskId);
expect(userTaskDto.task).toBeNull();
expect(userTaskDto.userId).toBe(userId);
expect(userTaskDto.user).toBeNull();
});
});

0 comments on commit c89b354

Please sign in to comment.