From 2b9e5dcd1b93792bcfa1df07352cff1ecffbf36d Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 27 Jul 2016 00:39:01 +0800 Subject: [PATCH] [web] change test files --- web/package.json | 1 + web/src/js/__tests__/ducks/{flowView.js => flowViewSpec.js} | 0 web/src/js/__tests__/ducks/{flows.js => flowsSpec.js} | 0 web/src/js/__tests__/ducks/tutils.js | 6 ------ web/src/js/__tests__/ducks/ui/{header.js => headerSpec.js} | 0 web/src/js/__tests__/ducks/utils/{list.js => listSpec.js} | 0 web/src/js/__tests__/ducks/utils/{view.js => viewSpec.js} | 0 web/src/js/ducks/utils/view.js | 1 - 8 files changed, 1 insertion(+), 7 deletions(-) rename web/src/js/__tests__/ducks/{flowView.js => flowViewSpec.js} (100%) rename web/src/js/__tests__/ducks/{flows.js => flowsSpec.js} (100%) rename web/src/js/__tests__/ducks/ui/{header.js => headerSpec.js} (100%) rename web/src/js/__tests__/ducks/utils/{list.js => listSpec.js} (100%) rename web/src/js/__tests__/ducks/utils/{view.js => viewSpec.js} (100%) diff --git a/web/package.json b/web/package.json index 81b96adca..66a12501b 100644 --- a/web/package.json +++ b/web/package.json @@ -7,6 +7,7 @@ "start": "gulp" }, "jest": { + "testRegex": "__tests__/.*\\Spec.js$", "testPathDirs": [ "/src/js" ], diff --git a/web/src/js/__tests__/ducks/flowView.js b/web/src/js/__tests__/ducks/flowViewSpec.js similarity index 100% rename from web/src/js/__tests__/ducks/flowView.js rename to web/src/js/__tests__/ducks/flowViewSpec.js diff --git a/web/src/js/__tests__/ducks/flows.js b/web/src/js/__tests__/ducks/flowsSpec.js similarity index 100% rename from web/src/js/__tests__/ducks/flows.js rename to web/src/js/__tests__/ducks/flowsSpec.js diff --git a/web/src/js/__tests__/ducks/tutils.js b/web/src/js/__tests__/ducks/tutils.js index 6a543434c..90a21b78d 100644 --- a/web/src/js/__tests__/ducks/tutils.js +++ b/web/src/js/__tests__/ducks/tutils.js @@ -10,9 +10,3 @@ export function createStore(parts) { applyMiddleware(...[thunk]) ) } - -describe('tutils', () => { - it('do nothing', () => { - return - }) -}) \ No newline at end of file diff --git a/web/src/js/__tests__/ducks/ui/header.js b/web/src/js/__tests__/ducks/ui/headerSpec.js similarity index 100% rename from web/src/js/__tests__/ducks/ui/header.js rename to web/src/js/__tests__/ducks/ui/headerSpec.js diff --git a/web/src/js/__tests__/ducks/utils/list.js b/web/src/js/__tests__/ducks/utils/listSpec.js similarity index 100% rename from web/src/js/__tests__/ducks/utils/list.js rename to web/src/js/__tests__/ducks/utils/listSpec.js diff --git a/web/src/js/__tests__/ducks/utils/view.js b/web/src/js/__tests__/ducks/utils/viewSpec.js similarity index 100% rename from web/src/js/__tests__/ducks/utils/view.js rename to web/src/js/__tests__/ducks/utils/viewSpec.js diff --git a/web/src/js/ducks/utils/view.js b/web/src/js/ducks/utils/view.js index fdddc3917..6bf0a63ea 100755 --- a/web/src/js/ducks/utils/view.js +++ b/web/src/js/ducks/utils/view.js @@ -77,7 +77,6 @@ export default function reduce(state = defaultState, action) { ...sortedUpdate(state, action.item, action.sort), } } - break; case RECEIVE: { const data = action.list.filter(action.filter).sort(action.sort)