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
/
analyses.js
53 lines (47 loc) · 1.75 KB
/
analyses.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
import React from "react";
import ReactDOM from "react-dom";
import { getDefaultTheme, MuiThemeProvider } from "../lib";
import AnalysisInfoDialogTest from "../../stories/analysis/view/dialogs/AnalysisInfoDialog.stories";
import AnalysisParametersDialogTest from "../../stories/analysis/view/dialogs/AnalysisParametersDialog.stories";
import ShareWithSupportDialogTest from "../../stories/analysis/view/dialogs/ShareWithSupportDialog.stories";
import AnalysesViewTest from "../../stories/analysis/view/AnalysesView.stories";
it("renders AnalysisInfoDialog without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AnalysisInfoDialogTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders AnalysisParametersDialog without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AnalysisParametersDialogTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders ShareWithSupportDialog without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<ShareWithSupportDialogTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});
it("renders AnalysesView without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MuiThemeProvider theme={getDefaultTheme()}>
<AnalysesViewTest />
</MuiThemeProvider>,
div
);
ReactDOM.unmountComponentAtNode(div);
});