diff --git a/.circleci/config.yml b/.circleci/config.yml index aca32f2..6ef7cc7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,12 @@ jobs: build: docker: # specify the version you desire here - - image: circleci/node:7.10 + - image: circleci/node:8.11 + - image: circleci/mysql:5.7.22 + environment: + - MYSQL_ALLOW_EMPTY_PASSWORD=true + - MYSQL_ROOT_HOST=% + # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images @@ -27,6 +32,9 @@ jobs: - v1-dependencies- - run: npm install + - run: yarn install + - run: sudo apt install -y mysql-client + - run: mysql -h 127.0.0.1 -u root < ./schema.sql - save_cache: paths: diff --git a/__mocks__/fileMock.js b/__mocks__/fileMock.js new file mode 100644 index 0000000..86059f3 --- /dev/null +++ b/__mocks__/fileMock.js @@ -0,0 +1 @@ +module.exports = 'test-file-stub'; diff --git a/__mocks__/styleMock.js b/__mocks__/styleMock.js new file mode 100644 index 0000000..f053ebf --- /dev/null +++ b/__mocks__/styleMock.js @@ -0,0 +1 @@ +module.exports = {}; diff --git a/client/src/components/Gallery.jsx b/client/src/components/Gallery.jsx index 4f1d22d..e790f79 100644 --- a/client/src/components/Gallery.jsx +++ b/client/src/components/Gallery.jsx @@ -99,7 +99,7 @@ class Gallery extends React.Component { render() { return ( -