[web] Remove MITMWEB_STATIC var in tests, and update them.

This commit is contained in:
Matthew Shao 2017-08-08 21:59:07 +08:00
parent 756b734ae2
commit dd43722c18
4 changed files with 13 additions and 29 deletions

View File

@ -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(),

View File

@ -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(),

View File

@ -72,17 +72,9 @@ exports[`FileMenu Component should render correctly 1`] = `
/>
 Options
</a>
</li>
<li>
<hr
className="divider"
/>
</li>
<li>
<a
href="http://mitm.it/"
target="_blank"

View File

@ -105,9 +105,6 @@ exports[`OptionMenu Component should render correctly 1`] = `
>
<div
className="menu-content"
>
<div
className={undefined}
>
<div
className="menu-entry"
@ -125,7 +122,6 @@ exports[`OptionMenu Component should render correctly 1`] = `
/>
</label>
</div>
</div>
<div
className="menu-entry"
>