Skip to content

Commit 4e08593

Browse files
committed
Update test for helpers/modeAdjust
modeAdjust() now always returns the top-left corner and a positive width and height.
1 parent f43d12d commit 4e08593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/node/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ suite('helpers/modeAdjust', function() {
1515
});
1616
test('should set mode to corners', function() {
1717
result = helpers.modeAdjust(a, b, c, d, constants.CORNERS);
18-
expect(result).to.eql({ x: 100, y: 200, w: -50, h: -50 });
18+
expect(result).to.eql({ x: 50, y: 150, w: 50, h: 50 });
1919
});
2020
test('should set mode to radius', function() {
2121
result = helpers.modeAdjust(a, b, c, d, constants.RADIUS);

0 commit comments

Comments
 (0)