Skip to content

Commit

Permalink
fix: change cdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
HandsomeButterball committed Jul 8, 2021
1 parent 1c0f562 commit 59865f0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"@angular/animations": "~11.2.14",
"@angular/cdk": "~11.2.12",
"@angular/cdk": "~10.0.0",
"@angular/common": "~11.2.14",
"@angular/compiler": "~11.2.14",
"@angular/core": "~11.2.14",
Expand Down
26 changes: 13 additions & 13 deletions packages/gantt/src/components/bar/test/bar.drag.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,19 @@ describe('bar-drag', () => {
expect(bar.componentInstance.item.end.getUnixTime()).toEqual(new GanttDate('2020-06-26 23:59:59').getUnixTime());
});

// it('should first bar handle drag', () => {
// const bar = fixture.debugElement.queryAll(By.directive(NgxGanttBarComponent))[1];
// const firstHandleElement = bar.queryAll(By.css('.drag-handles .handle'))[0].nativeElement;
// dragEvent(fixture, firstHandleElement, bar.nativeElement);
// expect(bar.componentInstance.item.start.getUnixTime()).toEqual(new GanttDate('2020-05-14 00:00:00').getUnixTime());
// });

// it('should last bar handles drag', () => {
// const bar = fixture.debugElement.queryAll(By.directive(NgxGanttBarComponent))[1];
// const lastHandleElement = bar.queryAll(By.css('.drag-handles .handle'))[1].nativeElement;
// dragEvent(fixture, lastHandleElement, bar.nativeElement);
// expect(bar.componentInstance.item.end.getUnixTime()).toEqual(new GanttDate('2020-07-15 23:59:59').getUnixTime());
// });
it('should first bar handle drag', () => {
const bar = fixture.debugElement.queryAll(By.directive(NgxGanttBarComponent))[1];
const firstHandleElement = bar.queryAll(By.css('.drag-handles .handle'))[0].nativeElement;
dragEvent(fixture, firstHandleElement, bar.nativeElement);
expect(bar.componentInstance.item.start.getUnixTime()).toEqual(new GanttDate('2020-05-14 00:00:00').getUnixTime());
});

it('should last bar handles drag', () => {
const bar = fixture.debugElement.queryAll(By.directive(NgxGanttBarComponent))[1];
const lastHandleElement = bar.queryAll(By.css('.drag-handles .handle'))[1].nativeElement;
dragEvent(fixture, lastHandleElement, bar.nativeElement);
expect(bar.componentInstance.item.end.getUnixTime()).toEqual(new GanttDate('2020-07-15 23:59:59').getUnixTime());
});

it('should first bar link handle drag', () => {
const bar = fixture.debugElement.queryAll(By.directive(NgxGanttBarComponent))[2];
Expand Down

0 comments on commit 59865f0

Please sign in to comment.