mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +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"
|
||||
|
@ -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"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user