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 12d74fe commit f455f8fCopy full SHA for f455f8f
test/offset.spec.js
@@ -48,3 +48,7 @@ it('should adjust for backward scroll by the desired amount', () => {
48
49
expect(adjusted.borderBox).toEqual(expectedBorderBox);
50
});
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