From d4f5a63b4f9599c45aabd9c5bef9750b24b175c5 Mon Sep 17 00:00:00 2001 From: Ian Huff Date: Fri, 18 Jan 2019 13:54:54 -0800 Subject: [PATCH 1/5] tests and hygiene --- src/datascience-ui/history-react/cell.tsx | 80 +++++++----- .../datascience/history.functional.test.tsx | 121 ++++++++++++------ src/test/datascience/mockJupyterManager.ts | 7 +- 3 files changed, 135 insertions(+), 73 deletions(-) diff --git a/src/datascience-ui/history-react/cell.tsx b/src/datascience-ui/history-react/cell.tsx index faa0ee5b6f3a..1ef6fa61a068 100644 --- a/src/datascience-ui/history-react/cell.tsx +++ b/src/datascience-ui/history-react/cell.tsx @@ -16,6 +16,7 @@ import { Identifiers } from '../../client/datascience/constants'; import { CellState, ICell } from '../../client/datascience/types'; import { noop } from '../../test/core'; import { getLocString } from '../react-common/locReactSide'; +import { getSettings } from '../react-common/settingsReactSide'; import { CellButton } from './cellButton'; import { Code } from './code'; import { CollapseButton } from './collapseButton'; @@ -97,34 +98,40 @@ export class Cell extends React.Component { private renderNormalCell() { const busy = this.props.cellVM.cell.state === CellState.init || this.props.cellVM.cell.state === CellState.executing; const hasNoSource = this.props.cellVM.cell.file === Identifiers.EmptyFileName; - return ( -
- - - - - - -
-
-
- -