Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Nov 30, 2024
1 parent dab340c commit c346f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/repository/TaskRepository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ describe('test/repository/TaskRepository.test.ts', () => {
const newData = EntityUtil.defaultData(data, 'taskId');
const task1 = new Task(newData);
const lastSince = new Date();
await setTimeout(1);
await setTimeout(100);
task1.updatedAt = lastSince;
await taskRepository.saveTask(task1);

assert(task1.updatedAt.getTime() > lastSince.getTime());
assert(task1.updatedAt.getTime() >= lastSince.getTime());
});
});

Expand Down

0 comments on commit c346f90

Please sign in to comment.