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
/
apps.js
126 lines (113 loc) · 3.88 KB
/
apps.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import React from "react";
import ReactDOM from "react-dom";
import { getDefaultTheme, MuiThemeProvider } from "../lib";
import AppGridListingTest from "../../stories/apps/listing/AppGridListing.stories";
import AppTileListingTest from "../../stories/apps/listing/AppTileListing.stories";
import AppStatsTest from "../../stories/apps/admin/AppStats.stories";
import AppDetailsTest from "../../stories/apps/details/AppDetails.stories";
import AppDocTest from "../../stories/apps/details/AppDoc.stories";
import AppInfoDialogTest from "../../stories/apps/details/AppInfoDialog.stories";
import CategoryTreeTest from "../../stories/apps/details/CategoryTree.stories";
import ToolDetailsTest from "../../stories/apps/details/ToolDetails.stories";
import CreateQuickLaunchDialogTest from "../../stories/apps/quickLaunch/CreateQuickLaunchDialog.stories";
import QuickLaunchListingTest from "../../stories/apps/quickLaunch/QuickLaunchListing.stories";
it("renders CategoryTree without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<CategoryTreeTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders ToolDetails without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<ToolDetailsTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders AppStats without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AppStatsTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders AppDetails without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AppDetailsTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders AppDoc without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AppDocTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders AppInfoDialog without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AppInfoDialogTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders Quick launch without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<QuickLaunchListingTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders create Quick launch dialog without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<CreateQuickLaunchDialogTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders app grid listing without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AppGridListingTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders app tile listing without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AppTileListingTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});