diff --git a/src/__tests__/App.electron.tsx b/src/__tests__/App.electron.tsx deleted file mode 100644 index 631be768f..000000000 --- a/src/__tests__/App.electron.tsx +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Copyright 2018-present Facebook. - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * @format - */ -import React from 'react'; -import {App} from '../App'; -import {Provider} from 'react-redux'; -import renderer from 'react-test-renderer'; -import reducers from '../reducers/index'; -import configureStore from 'redux-mock-store'; -import {init as initLogger} from '../fb-stubs/Logger'; -import BugReporter from '../fb-stubs/BugReporter'; - -// create redux store with initial state -const mockStore = configureStore([])(reducers(undefined, {type: 'INIT'})); - -test('Empty app state matches snapshot', () => { - const logger = initLogger(mockStore); - const bugReporter = new BugReporter(logger, mockStore); - - const component = renderer.create( - - - , - ); - expect(component.toJSON()).toMatchSnapshot(); -}); diff --git a/src/chrome/TitleBar.tsx b/src/chrome/TitleBar.tsx index 089ffe7ee..bfa6c54bc 100644 --- a/src/chrome/TitleBar.tsx +++ b/src/chrome/TitleBar.tsx @@ -57,7 +57,7 @@ const AppTitleBar = styled(FlexRow)(({focused}: {focused?: boolean}) => ({ paddingRight: 10, justifyContent: 'space-between', WebkitAppRegion: 'drag', - zIndex: 4, + zIndex: 6, })); type OwnProps = { diff --git a/src/chrome/__tests__/TitleBar.electron.js b/src/chrome/__tests__/TitleBar.electron.js deleted file mode 100644 index ba66f3729..000000000 --- a/src/chrome/__tests__/TitleBar.electron.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Copyright 2018-present Facebook. - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * @format - */ - -import TitleBar from '../TitleBar.tsx'; -import renderer from 'react-test-renderer'; -import reducers from '../../reducers/index.tsx'; -import configureStore from 'redux-mock-store'; -import {Provider} from 'react-redux'; - -const mockStore = configureStore([])(reducers(undefined, {type: 'INIT'})); - -test('TitleBar is rendered', () => { - const component = renderer.create( - - {}} - toggleRightSidebarVisible={() => {}} - setActiveSheet={_sheet => {}} - version="1.0.0" - launcherMsg={{message: 'Hello world', severity: 'warning'}} - /> - , - ); - expect(component.toJSON()).toMatchSnapshot(); -}); diff --git a/src/chrome/__tests__/__snapshots__/TitleBar.electron.js.snap b/src/chrome/__tests__/__snapshots__/TitleBar.electron.js.snap deleted file mode 100644 index a1c6665cd..000000000 --- a/src/chrome/__tests__/__snapshots__/TitleBar.electron.js.snap +++ /dev/null @@ -1,112 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`TitleBar is rendered 1`] = ` -
-
-
- No device selected -
-
-
-
-
-
-
-
-
-
- - 1.0.0-dev - -
-
-
-
-
-
-
-
-
-
-
-
-`;