[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

@ -107,24 +107,20 @@ exports[`OptionMenu Component should render correctly 1`] = `
className="menu-content"
>
<div
className={undefined}
className="menu-entry"
>
<div
className="menu-entry"
>
<label>
<input
checked={false}
onChange={[Function]}
type="checkbox"
/>
Use Host Header
<i
className="fa fa-question-circle"
title="Use the Host header to construct URLs for display."
/>
</label>
</div>
<label>
<input
checked={false}
onChange={[Function]}
type="checkbox"
/>
Use Host Header
<i
className="fa fa-question-circle"
title="Use the Host header to construct URLs for display."
/>
</label>
</div>
<div
className="menu-entry"