From d902b851c8ba9a9de1e8486cc9348d69a7e0dd08 Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Thu, 18 May 2017 10:42:06 +0800 Subject: [PATCH] [web] Minor fixes for component tests. --- .../js/__tests__/components/FlowTable/FlowColumnsSpec.js | 1 - .../__tests__/components/ValueEditor/ValidateEditorSpec.js | 2 +- web/src/js/__tests__/ducks/tutils.js | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.js b/web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.js index 7606a683f..576838f4f 100644 --- a/web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.js +++ b/web/src/js/__tests__/components/FlowTable/FlowColumnsSpec.js @@ -59,7 +59,6 @@ describe('FlowColumns Components', () => { }) it('should render pathColumn', () => { - // error let pathColumn = renderer.create(), tree = pathColumn.toJSON() expect(tree).toMatchSnapshot() diff --git a/web/src/js/__tests__/components/ValueEditor/ValidateEditorSpec.js b/web/src/js/__tests__/components/ValueEditor/ValidateEditorSpec.js index 0c6ac3590..32dabe591 100644 --- a/web/src/js/__tests__/components/ValueEditor/ValidateEditorSpec.js +++ b/web/src/js/__tests__/components/ValueEditor/ValidateEditorSpec.js @@ -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( ), diff --git a/web/src/js/__tests__/ducks/tutils.js b/web/src/js/__tests__/ducks/tutils.js index 70992bcb8..f140222d7 100644 --- a/web/src/js/__tests__/ducks/tutils.js +++ b/web/src/js/__tests__/ducks/tutils.js @@ -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',