Skip to content

Commit

Permalink
fix: fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshuicmq authored and HandsomeButterball committed Jun 30, 2021
1 parent 88d66d3 commit 42b5785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gantt/src/class/test/item.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ describe('GanttItemInternal', () => {
});

it(`should has correct end`, () => {
expect(ganttItemInternal.end.getUnixTime()).toBe(new GanttDate('2020-06-21 23:59:59').getUnixTime());
expect(ganttItemInternal.end.getUnixTime()).toBe(new GanttDate('2020-06-20 23:59:59').getUnixTime());

ganttItem.end = null;
ganttItem.start = new GanttDate('2020-05-21 12:34:35').getUnixTime();
ganttItemInternal = new GanttItemInternal(ganttItem);
expect(ganttItemInternal.end.getUnixTime()).toBe(new GanttDate('2020-06-21 23:59:59').getUnixTime());
expect(ganttItemInternal.end.getUnixTime()).toBe(new GanttDate('2020-06-20 23:59:59').getUnixTime());

ganttItemInternal = new GanttItemInternal(ganttItem, { viewType: GanttViewType.day });
expect(ganttItemInternal.end.getUnixTime()).toBe(new GanttDate('2020-05-21 23:59:59').getUnixTime());
Expand Down

0 comments on commit 42b5785

Please sign in to comment.