mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
[web] Remove MITMWEB_STATIC var in tests, and update them.
This commit is contained in:
parent
756b734ae2
commit
dd43722c18
@ -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(),
|
||||
|
@ -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(),
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user