mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
[web] Update tests to ensure they won't be disturbed by static mode
This commit is contained in:
parent
f7b494ccf2
commit
c6385e81c8
@ -7,6 +7,7 @@ import { TFlow, TStore }from '../../ducks/tutils'
|
|||||||
import { MessageUtils } from "../../../flow/utils"
|
import { MessageUtils } from "../../../flow/utils"
|
||||||
import { Provider } from 'react-redux'
|
import { Provider } from 'react-redux'
|
||||||
|
|
||||||
|
global.MITMWEB_STATIC = false
|
||||||
|
|
||||||
describe('FlowMenu Component', () => {
|
describe('FlowMenu Component', () => {
|
||||||
let actions = {
|
let actions = {
|
||||||
|
@ -4,6 +4,7 @@ import { Provider } from 'react-redux'
|
|||||||
import OptionMenu from '../../../components/Header/OptionMenu'
|
import OptionMenu from '../../../components/Header/OptionMenu'
|
||||||
import { TStore } from '../../ducks/tutils'
|
import { TStore } from '../../ducks/tutils'
|
||||||
|
|
||||||
|
global.MITMWEB_STATIC = false
|
||||||
|
|
||||||
describe('OptionMenu Component', () => {
|
describe('OptionMenu Component', () => {
|
||||||
it('should render correctly', () => {
|
it('should render correctly', () => {
|
||||||
|
@ -107,20 +107,24 @@ exports[`OptionMenu Component should render correctly 1`] = `
|
|||||||
className="menu-content"
|
className="menu-content"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="menu-entry"
|
className={undefined}
|
||||||
>
|
>
|
||||||
<label>
|
<div
|
||||||
<input
|
className="menu-entry"
|
||||||
checked={false}
|
>
|
||||||
onChange={[Function]}
|
<label>
|
||||||
type="checkbox"
|
<input
|
||||||
/>
|
checked={false}
|
||||||
Use Host Header
|
onChange={[Function]}
|
||||||
<i
|
type="checkbox"
|
||||||
className="fa fa-question-circle"
|
/>
|
||||||
title="Use the Host header to construct URLs for display."
|
Use Host Header
|
||||||
/>
|
<i
|
||||||
</label>
|
className="fa fa-question-circle"
|
||||||
|
title="Use the Host header to construct URLs for display."
|
||||||
|
/>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="menu-entry"
|
className="menu-entry"
|
||||||
|
Loading…
Reference in New Issue
Block a user