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
/
tools.js
52 lines (47 loc) · 1.61 KB
/
tools.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
import React from "react";
import ReactDOM from "react-dom";
import { getDefaultTheme, MuiThemeProvider } from "../lib";
import EditToolTest from "../../stories/tools/EditTool.stories";
import ManageToolsTest from "../../stories/tools/ManageTools.stories";
import NewToolRequestFormTest from "../../stories/tools/requests/NewToolRequestsForm.stories";
import TooInfoDialogTest from "../../stories/tools/ToolInfoDialog.stories";
it("renders EditToolTest without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<EditToolTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders ManageToolsTest without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<ManageToolsTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders NewToolRequestForm without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<NewToolRequestFormTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders Tool Details without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<TooInfoDialogTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});