File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ describe('dragElement', function() {
81
81
expect ( args [ 1 ] ) . toEqual ( 10 ) ;
82
82
} ) ;
83
83
84
- it ( 'should pass the event to doneFn on mouseup after mousemove' , function ( ) {
84
+ it ( 'does not pass the event to doneFn on mouseup after mousemove' , function ( ) {
85
85
var args = [ ] ;
86
86
var options = {
87
87
element : this . element ,
@@ -99,8 +99,7 @@ describe('dragElement', function() {
99
99
mouseEvent ( 'mousemove' , this . x + 10 , this . y + 10 ) ;
100
100
mouseEvent ( 'mouseup' , this . x , this . y ) ;
101
101
102
- expect ( args . length ) . toBe ( 1 ) ;
103
- expect ( args [ 0 ] . type ) . toBe ( 'mouseup' ) ;
102
+ expect ( args . length ) . toBe ( 0 ) ;
104
103
} ) ;
105
104
106
105
it ( 'should pass numClicks and event to clickFn on mouseup after no/small mousemove' , function ( ) {
You can’t perform that action at this time.
0 commit comments