tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PrivacyLink.test.jsx (623B)


      1 import { PrivacyLink } from "content-src/components/DiscoveryStreamComponents/PrivacyLink/PrivacyLink";
      2 import React from "react";
      3 import { shallow } from "enzyme";
      4 
      5 describe("<PrivacyLink>", () => {
      6  let wrapper;
      7  let sandbox;
      8 
      9  beforeEach(() => {
     10    sandbox = sinon.createSandbox();
     11    wrapper = shallow(
     12      <PrivacyLink
     13        properties={{
     14          url: "url",
     15          title: "Privacy Link",
     16        }}
     17      />
     18    );
     19  });
     20 
     21  afterEach(() => {
     22    sandbox.restore();
     23  });
     24 
     25  it("should render", () => {
     26    assert.ok(wrapper.exists());
     27    assert.ok(wrapper.find(".ds-privacy-link").exists());
     28  });
     29 });