[web] Update tests to ensure they won't be disturbed by static mode

This commit is contained in:
Matthew Shao 2017-08-07 11:08:19 +08:00
parent f7b494ccf2
commit c6385e81c8
3 changed files with 19 additions and 13 deletions

View File

@ -7,6 +7,7 @@ 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 = {

View File

@ -4,6 +4,7 @@ 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', () => {

View File

@ -107,20 +107,24 @@ exports[`OptionMenu Component should render correctly 1`] = `
className="menu-content"
>
<div
className="menu-entry"
className={undefined}
>
<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
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>
</div>
<div
className="menu-entry"