aboutsummaryrefslogtreecommitdiff
path: root/test/content/components/follow.test.js
blob: 9c00c7906135454895818a46a1a22308a4f9ab20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { expect } from "chai";
import FollowComponent from 'content/components/follow';

describe('FollowComponent', () => {
  describe('#getTargetElements', () => {
    beforeEach(() => {
      document.body.innerHTML = __html__['test/content/components/follow.html'];
    });

    it('returns visible links', () => {
      let links = FollowComponent.getTargetElements(window.document);
      expect(links).to.have.lengthOf(1);
    });
  });
});