File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1124,8 +1124,8 @@ describe('A fixed size shape', function() {
1124
1124
var shapeNodeAfterDrag = getFirstShapeNode ( ) ;
1125
1125
var bBoxAfterDrag = shapeNodeAfterDrag . getBoundingClientRect ( ) ;
1126
1126
var resizeFactor = shallShrink ? - 1 : 1 ;
1127
- expect ( bBoxAfterDrag . height ) . toBe ( bBoxBeforeDrag . height + resizeFactor * Math . abs ( dy ) ) ;
1128
- expect ( bBoxAfterDrag . width ) . toBe ( bBoxBeforeDrag . width + resizeFactor * Math . abs ( dx ) ) ;
1127
+ expect ( bBoxAfterDrag . height ) . toBeCloseTo ( bBoxBeforeDrag . height + resizeFactor * Math . abs ( dy ) ) ;
1128
+ expect ( bBoxAfterDrag . width ) . toBeCloseTo ( bBoxBeforeDrag . width + resizeFactor * Math . abs ( dx ) ) ;
1129
1129
assertShapeFullyVisible ( shapeNodeAfterDrag ) ;
1130
1130
} )
1131
1131
. then ( done , done . fail ) ;
You can’t perform that action at this time.
0 commit comments