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