aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/content/components/common/follow.test.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/content/components/common/follow.test.js b/test/content/components/common/follow.test.js
index 97bd1d2..1fc935e 100644
--- a/test/content/components/common/follow.test.js
+++ b/test/content/components/common/follow.test.js
@@ -8,7 +8,10 @@ describe('FollowComponent', () => {
});
it('returns visible links', () => {
- let targets = FollowComponent.getTargetElements(window);
+ let targets = FollowComponent.getTargetElements(
+ window,
+ { width: window.innerWidth, height: window.innerHeight },
+ { x: 0, y: 0 });
expect(targets).to.have.lengthOf(3);
let ids = Array.prototype.map.call(targets, (e) => e.id);