@@ -13,7 +13,7 @@ describe('draggable directive', () => {
13
13
<div
14
14
mwlDraggable
15
15
[dragAxis]="dragAxis"
16
- [snapGrid ]="snapGrid "
16
+ [dragSnapGrid ]="dragSnapGrid "
17
17
[ghostDragEnabled]="ghostDragEnabled"
18
18
(dragStart)="dragStart($event)"
19
19
(dragging)="dragging($event)"
@@ -28,7 +28,7 @@ describe('draggable directive', () => {
28
28
public dragging : sinon . SinonSpy = sinon . spy ( ) ;
29
29
public dragEnd : sinon . SinonSpy = sinon . spy ( ) ;
30
30
public dragAxis : any = { x : true , y : true } ;
31
- public snapGrid : any = { } ;
31
+ public dragSnapGrid : any = { } ;
32
32
public ghostDragEnabled : boolean = true ;
33
33
34
34
}
@@ -123,7 +123,7 @@ describe('draggable directive', () => {
123
123
} ) ;
124
124
125
125
it ( 'should snap all horizontal drags to a grid' , ( ) => {
126
- fixture . componentInstance . snapGrid = { x : 10 } ;
126
+ fixture . componentInstance . dragSnapGrid = { x : 10 } ;
127
127
fixture . detectChanges ( ) ;
128
128
const draggableElement : HTMLElement = fixture . componentInstance . draggable . element . nativeElement ;
129
129
triggerDomEvent ( 'mousedown' , draggableElement , { clientX : 5 , clientY : 10 } ) ;
@@ -140,7 +140,7 @@ describe('draggable directive', () => {
140
140
} ) ;
141
141
142
142
it ( 'should snap all vertical drags to a grid' , ( ) => {
143
- fixture . componentInstance . snapGrid = { y : 10 } ;
143
+ fixture . componentInstance . dragSnapGrid = { y : 10 } ;
144
144
fixture . detectChanges ( ) ;
145
145
const draggableElement : HTMLElement = fixture . componentInstance . draggable . element . nativeElement ;
146
146
triggerDomEvent ( 'mousedown' , draggableElement , { clientX : 10 , clientY : 5 } ) ;
@@ -157,7 +157,7 @@ describe('draggable directive', () => {
157
157
} ) ;
158
158
159
159
it ( 'should snap all vertical and horizontal drags to a grid' , ( ) => {
160
- fixture . componentInstance . snapGrid = { y : 10 , x : 10 } ;
160
+ fixture . componentInstance . dragSnapGrid = { y : 10 , x : 10 } ;
161
161
fixture . detectChanges ( ) ;
162
162
const draggableElement : HTMLElement = fixture . componentInstance . draggable . element . nativeElement ;
163
163
triggerDomEvent ( 'mousedown' , draggableElement , { clientX : 10 , clientY : 5 } ) ;
0 commit comments