From dd43722c184ea90be805b1fd6b6248a18e5d880e Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Tue, 8 Aug 2017 21:59:07 +0800 Subject: [PATCH] [web] Remove MITMWEB_STATIC var in tests, and update them. --- .../components/Header/FlowMenuSpec.js | 2 -- .../components/Header/OptionMenuSpec.js | 2 -- .../Header/__snapshots__/FileMenuSpec.js.snap | 8 ----- .../__snapshots__/OptionMenuSpec.js.snap | 30 ++++++++----------- 4 files changed, 13 insertions(+), 29 deletions(-) diff --git a/web/src/js/__tests__/components/Header/FlowMenuSpec.js b/web/src/js/__tests__/components/Header/FlowMenuSpec.js index 03b0f59db..65fde2136 100644 --- a/web/src/js/__tests__/components/Header/FlowMenuSpec.js +++ b/web/src/js/__tests__/components/Header/FlowMenuSpec.js @@ -7,8 +7,6 @@ import { TFlow, TStore }from '../../ducks/tutils' import { MessageUtils } from "../../../flow/utils" import { Provider } from 'react-redux' -global.MITMWEB_STATIC = false - describe('FlowMenu Component', () => { let actions = { resumeFlow: jest.fn(), diff --git a/web/src/js/__tests__/components/Header/OptionMenuSpec.js b/web/src/js/__tests__/components/Header/OptionMenuSpec.js index 729f42f24..980285ef1 100644 --- a/web/src/js/__tests__/components/Header/OptionMenuSpec.js +++ b/web/src/js/__tests__/components/Header/OptionMenuSpec.js @@ -4,8 +4,6 @@ import { Provider } from 'react-redux' import OptionMenu from '../../../components/Header/OptionMenu' import { TStore } from '../../ducks/tutils' -global.MITMWEB_STATIC = false - describe('OptionMenu Component', () => { it('should render correctly', () => { let store = TStore(), diff --git a/web/src/js/__tests__/components/Header/__snapshots__/FileMenuSpec.js.snap b/web/src/js/__tests__/components/Header/__snapshots__/FileMenuSpec.js.snap index 15c1afbc2..ef9359149 100644 --- a/web/src/js/__tests__/components/Header/__snapshots__/FileMenuSpec.js.snap +++ b/web/src/js/__tests__/components/Header/__snapshots__/FileMenuSpec.js.snap @@ -72,17 +72,9 @@ exports[`FileMenu Component should render correctly 1`] = ` />  Options - - -
  • -
    - -
  • -
  • -
    -
    - -
    +