From abf519da836b635eac4cf1f728615472169ba032 Mon Sep 17 00:00:00 2001 From: Daniel Kos Date: Wed, 6 Jun 2018 08:44:10 +0200 Subject: [PATCH] Fix tests passing Feature #13535 Arvados-DCO-1.1-Signed-off-by: Daniel Kos : --- src/components/project-list/project-list.tsx | 3 +-- src/components/tree/tree.test.tsx | 3 +++ src/views/workbench/workbench.test.tsx | 11 ++++++++++- tsconfig.test.json | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 src/components/tree/tree.test.tsx diff --git a/src/components/project-list/project-list.tsx b/src/components/project-list/project-list.tsx index 3526da39..ec16a677 100644 --- a/src/components/project-list/project-list.tsx +++ b/src/components/project-list/project-list.tsx @@ -4,9 +4,8 @@ import * as React from 'react'; import { Theme } from "@material-ui/core"; -import { StyleRulesCallback, WithStyles } from "@material-ui/core/styles"; +import { StyleRulesCallback, WithStyles, withStyles } from "@material-ui/core/styles"; import Paper from "@material-ui/core/Paper/Paper"; -import withStyles from "@material-ui/core/es/styles/withStyles"; import Table from "@material-ui/core/Table/Table"; import TableHead from "@material-ui/core/TableHead/TableHead"; import TableRow from "@material-ui/core/TableRow/TableRow"; diff --git a/src/components/tree/tree.test.tsx b/src/components/tree/tree.test.tsx new file mode 100644 index 00000000..6a5f4107 --- /dev/null +++ b/src/components/tree/tree.test.tsx @@ -0,0 +1,3 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 diff --git a/src/views/workbench/workbench.test.tsx b/src/views/workbench/workbench.test.tsx index f7128a74..b1657bc3 100644 --- a/src/views/workbench/workbench.test.tsx +++ b/src/views/workbench/workbench.test.tsx @@ -8,10 +8,19 @@ import Workbench from '../../views/workbench/workbench'; import { Provider } from "react-redux"; import configureStore from "../../store/store"; import createBrowserHistory from "history/createBrowserHistory"; +import { ConnectedRouter } from "react-router-redux"; + +const history = createBrowserHistory(); it('renders without crashing', () => { const div = document.createElement('div'); const store = configureStore({ projects: [], router: { location: null } }, createBrowserHistory()); - ReactDOM.render(, div); + ReactDOM.render( + + + + + , + div); ReactDOM.unmountComponentAtNode(div); }); diff --git a/tsconfig.test.json b/tsconfig.test.json index 65ffdd49..2c7b2841 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -3,4 +3,4 @@ "compilerOptions": { "module": "commonjs" } -} \ No newline at end of file +} -- 2.30.2