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)