We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfbf0c commit e6e7caaCopy full SHA for e6e7caa
test/jasmine/tests/shapes_test.js
@@ -1124,8 +1124,8 @@ describe('A fixed size shape', function() {
1124
var shapeNodeAfterDrag = getFirstShapeNode();
1125
var bBoxAfterDrag = shapeNodeAfterDrag.getBoundingClientRect();
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));
+ expect(bBoxAfterDrag.height).toBeCloseTo(bBoxBeforeDrag.height + resizeFactor * Math.abs(dy));
+ expect(bBoxAfterDrag.width).toBeCloseTo(bBoxBeforeDrag.width + resizeFactor * Math.abs(dx));
1129
assertShapeFullyVisible(shapeNodeAfterDrag);
1130
})
1131
.then(done, done.fail);
0 commit comments