This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
data.js
89 lines (80 loc) · 2.75 KB
/
data.js
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import React from "react";
import ReactDOM from "react-dom";
import { getDefaultTheme, MuiThemeProvider } from "../lib";
import BasicDetailsTest from "../../stories/data/details/BasicDetails.stories";
import EditTagDialogTest from "../../stories/data/search/EditTagDialog.stories";
import InfoTypeSelectionListTest from "../../stories/data/details/InfoTypeSelectionList.stories";
import QueryBuilderTest from "../../stories/data/search/QueryBuilder.stories";
import SearchFormTagPanelTest from "../../stories/data/search/SearchFormTagPanel.stories";
import TagPanelTest from "../../stories/data/details/TagPanel.stories";
import TagTest from "../../stories/data/details/Tag.stories";
it("renders BasicDetailsTest without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<BasicDetailsTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders EditTagDialog without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<EditTagDialogTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders InfoTypeSelectionListTest without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<InfoTypeSelectionListTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders QueryBuilder without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<QueryBuilderTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders SearchFormTagPanel without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<SearchFormTagPanelTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders TagPanelTest without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<TagPanelTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders TagTest without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<TagTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});