@@ -154,7 +154,7 @@ describe('drag', () => {
154
154
events . raise ( item , 'pointerdown' , { which : 1 } ) ;
155
155
events . raise ( item , 'pointermove' , { which : 1 } ) ;
156
156
157
- expect ( item . className ) . toEqual ( 'gu-transit' ) ;
157
+ expect ( item . className ) . toBe ( 'gu-transit' ) ;
158
158
} ) ;
159
159
160
160
it . skip ( 'when dragging, body gets gu-unselectable class' , ( ) => {
@@ -167,7 +167,7 @@ describe('drag', () => {
167
167
events . raise ( item , 'pointerdown' , { which : 1 } ) ;
168
168
events . raise ( item , 'pointermove' , { which : 1 } ) ;
169
169
170
- expect ( document . body . className ) . toEqual ( 'gu-unselectable' ) ;
170
+ expect ( document . body . className ) . toBe ( 'gu-unselectable' ) ;
171
171
} ) ;
172
172
173
173
it . skip ( 'when dragging, element gets a mirror image for show' , ( ) => {
@@ -186,7 +186,7 @@ describe('drag', () => {
186
186
187
187
expect ( item . className ) . toBe ( 'gu-transit' ) ;
188
188
expect ( stubCloned ) . toHaveBeenCalledTimes ( 1 ) ;
189
- expect ( stubCloned . mock . calls [ 0 ] [ 0 ] . className ) . toEqual ( 'gu-mirror' ) ;
189
+ expect ( stubCloned . mock . calls [ 0 ] [ 0 ] . className ) . toBe ( 'gu-mirror' ) ;
190
190
expect ( stubCloned . mock . calls [ 0 ] [ 0 ] . innerHTML ) . toEqual ( item . innerHTML ) ;
191
191
expect ( stubCloned . mock . calls [ 0 ] [ 1 ] ) . toEqual ( item ) ;
192
192
} ) ;
@@ -220,11 +220,11 @@ describe('drag', () => {
220
220
events . raise ( item , 'pointerdown' , { which : 1 } ) ;
221
221
events . raise ( item , 'pointermove' , { which : 1 } ) ;
222
222
223
- expect ( item . className ) . toEqual ( 'gu-transit' ) ;
223
+ expect ( item . className ) . toBe ( 'gu-transit' ) ;
224
224
225
225
drake . end ( ) ;
226
226
227
- expect ( item . className ) . toEqual ( '' ) ;
227
+ expect ( item . className ) . toBe ( '' ) ;
228
228
} ) ;
229
229
230
230
it . skip ( 'when dragging stops, body becomes selectable again' , ( ) => {
@@ -237,11 +237,11 @@ describe('drag', () => {
237
237
events . raise ( item , 'pointerdown' , { which : 1 } ) ;
238
238
events . raise ( item , 'pointermove' , { which : 1 } ) ;
239
239
240
- expect ( document . body . className ) . toEqual ( 'gu-unselectable' ) ;
240
+ expect ( document . body . className ) . toBe ( 'gu-unselectable' ) ;
241
241
242
242
drake . end ( ) ;
243
243
244
- expect ( document . body . className ) . toEqual ( '' ) ;
244
+ expect ( document . body . className ) . toBe ( '' ) ;
245
245
} ) ;
246
246
247
247
it . skip ( 'when drag begins, check for copy option' , ( ) => {
@@ -261,8 +261,8 @@ describe('drag', () => {
261
261
events . raise ( item , 'pointermove' , { which : 1 } ) ; // ensure the copy method condition is only asserted once
262
262
263
263
expect ( stubCopy ) . toHaveBeenCalledTimes ( 1 ) ;
264
- expect ( stubCopy . mock . calls [ 0 ] [ 0 ] . className ) . toEqual ( 'copyable' ) ;
265
- expect ( stubCopy . mock . calls [ 0 ] [ 1 ] . className ) . toEqual ( 'contains' ) ;
264
+ expect ( stubCopy . mock . calls [ 0 ] [ 0 ] . className ) . toBe ( 'copyable' ) ;
265
+ expect ( stubCopy . mock . calls [ 0 ] [ 1 ] . className ) . toBe ( 'contains' ) ;
266
266
267
267
drake . end ( ) ;
268
268
} ) ;
0 commit comments