[web] Minor fixes for component tests.

This commit is contained in:
Matthew Shao 2017-05-18 10:42:06 +08:00
parent d290be2327
commit d902b851c8
3 changed files with 4 additions and 5 deletions

View File

@ -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()

View File

@ -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}/>
),

View File

@ -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',