Skip to content

Commit f455f8f

Browse files
committed
adding offset test
1 parent 12d74fe commit f455f8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/offset.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ it('should adjust for backward scroll by the desired amount', () => {
4848

4949
expect(adjusted.borderBox).toEqual(expectedBorderBox);
5050
});
51+
52+
it('should do nothing when shifting by the origin', () => {
53+
expect(offset(box, { x: 0, y: 0 })).toEqual(box);
54+
});

0 commit comments

Comments
 (0)