diff --git a/frontend/Makefile b/frontend/Makefile index b1a4b9a8..5649f17e 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -22,7 +22,7 @@ ui: .PHONY: test test: ui - NODE_ENV=test BABEL_DISABLE_CACHE=1 CONFIG=$(shell pwd)/webpack/index.js $(NYC) $(AVA) test/*.js $(TEST_ARGS) + NODE_ENV=test BABEL_DISABLE_CACHE=1 CONFIG=$(shell pwd)/webpack/index.js $(NYC) $(AVA) test/**/*.js $(TEST_ARGS) XUNIT_DIR := ${CIRCLE_TEST_REPORTS}/tap-xunit XUNIT := $(bindir)/tap-xunit @@ -30,7 +30,7 @@ XUNIT_OUTPUT := >> ${CIRCLE_TEST_REPORTS}/tap-xunit/xunit-$(NAME) .PHONY: test-ci test-ci: ui mkdir -p $(XUNIT_DIR) - BABEL_DISABLE_CACHE=1 NODE_ENV=test CONFIG=$(shell pwd)/webpack/index.js $(NYC) $(AVA) test/*.js -t | $(XUNIT) $(XUNIT_OUTPUT).xml + BABEL_DISABLE_CACHE=1 NODE_ENV=test CONFIG=$(shell pwd)/webpack/index.js $(NYC) $(AVA) test/**/*.js -t | $(XUNIT) $(XUNIT_OUTPUT).xml .PHONY: compile compile: ui install diff --git a/frontend/package.json b/frontend/package.json index 0ac86b1a..e5cf6078 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,6 +25,7 @@ "inherits": "^2.0.3", "locale": "^0.1.0", "lodash.find": "^4.6.0", + "lodash.get": "^4.4.2", "lodash.isempty": "^4.4.0", "lodash.template": "^4.4.0", "lodash.uniq": "^4.5.0", @@ -76,12 +77,15 @@ "eslint-plugin-react": "^6.8.0", "eslint-plugin-standard": "^2.0.1", "fast-async": "^6.1.2", + "jsdom": "^9.9.1", "json-loader": "^0.5.4", "ncp": "^2.0.0", "node-hook": "^0.4.0", "nyc": "^10.0.0", "pre-commit": "^1.2.2", "react-addons-test-utils": "^15.4.1", + "redux-ava": "^2.2.0", + "simple-mock": "^0.7.3", "tap-xunit": "^1.5.0", "thenify": "^3.2.1", "webpack": "^2.1.0-beta.25", diff --git a/frontend/src/components/projects/index.js b/frontend/src/components/projects/index.js index 7ad91328..a8fb3e91 100644 --- a/frontend/src/components/projects/index.js +++ b/frontend/src/components/projects/index.js @@ -23,7 +23,7 @@ const Projects = ({ const empty = projects.length ? null : ( -

+

@@ -48,7 +48,7 @@ const Projects = ({
-