mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
[web] Minor fixes for component tests.
This commit is contained in:
parent
d290be2327
commit
d902b851c8
@ -59,7 +59,6 @@ describe('FlowColumns Components', () => {
|
||||
})
|
||||
|
||||
it('should render pathColumn', () => {
|
||||
// error
|
||||
let pathColumn = renderer.create(<Columns.PathColumn flow={tFlow}/>),
|
||||
tree = pathColumn.toJSON()
|
||||
expect(tree).toMatchSnapshot()
|
||||
|
@ -7,7 +7,7 @@ describe('ValidateEditor Component', () => {
|
||||
let validateFn = jest.fn( content => content.length == 3),
|
||||
doneFn = jest.fn()
|
||||
|
||||
it('should be render correctly', () => {
|
||||
it('should render correctly', () => {
|
||||
let validateEditor = renderer.create(
|
||||
<ValidateEditor content="foo" onDone={doneFn} isValid={validateFn}/>
|
||||
),
|
||||
|
@ -10,9 +10,9 @@ export function createStore(parts) {
|
||||
|
||||
export function TFlow(intercepted=false, marked=false, modified=false) {
|
||||
return {
|
||||
intercepted : intercepted,
|
||||
marked : marked,
|
||||
modified: modified,
|
||||
intercepted ,
|
||||
marked,
|
||||
modified,
|
||||
id: "foo",
|
||||
request: {
|
||||
scheme: 'http',
|
||||
|
Loading…
Reference in New Issue
Block a user