aboutsummaryrefslogtreecommitdiff
path: root/test/content/follow.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/content/follow.test.js')
-rw-r--r--test/content/follow.test.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/content/follow.test.js b/test/content/follow.test.js
index eb3d679..fd4f0bc 100644
--- a/test/content/follow.test.js
+++ b/test/content/follow.test.js
@@ -11,4 +11,15 @@ describe('Follow class', () => {
expect(Follow.codeChars([])).to.be.equal('');
});
});
+
+ describe('#getTargetElements', () => {
+ beforeEach(() => {
+ document.body.innerHTML = __html__['test/content/follow.html'];
+ });
+
+ it('returns visible links', () => {
+ let links = Follow.getTargetElements(window.document);
+ expect(links).to.have.lengthOf(1);
+ });
+ });
});