-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathAssets.test.js
More file actions
56 lines (55 loc) · 1.98 KB
/
Assets.test.js
File metadata and controls
56 lines (55 loc) · 1.98 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import React from "react"
import renderer from "react-test-renderer"
import IconBoard from "../src/assets/IconBoard"
import IconNew from "../src/assets/IconNew"
import IconOpen from "../src/assets/IconOpen"
import IconRedo from "../src/assets/IconRedo"
import IconStart from "../src/assets/IconStart"
import IconSave from "../src/assets/IconSave"
import IconSearch from "../src/assets/IconSearch"
import IconStop from "../src/assets/IconStop"
import IconUndo from "../src/assets/IconUndo"
describe("Assets", () => {
test("IconBoard Enabled", () => {
const tree = renderer
.create(<IconBoard width={16} height={16} enabled />)
.toJSON()
expect(tree).toMatchSnapshot()
})
test("IconBoard Disabled", () => {
const tree = renderer.create(<IconBoard width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
test("IconNew", () => {
const tree = renderer.create(<IconNew width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
test("IconOpen", () => {
const tree = renderer.create(<IconOpen width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
test("IconRedo", () => {
const tree = renderer.create(<IconRedo width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
test("IconStart", () => {
const tree = renderer.create(<IconStart width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
test("IconSave", () => {
const tree = renderer.create(<IconSave width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
test("IconSearch", () => {
const tree = renderer.create(<IconSearch width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
test("IconStop", () => {
const tree = renderer.create(<IconStop width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
test("IconUndo", () => {
const tree = renderer.create(<IconUndo width={16} height={16} />).toJSON()
expect(tree).toMatchSnapshot()
})
})