diff --git a/.env.local b/.env.local deleted file mode 100644 index 2d16f8e2..00000000 --- a/.env.local +++ /dev/null @@ -1,2 +0,0 @@ -DATABASE_URL="postgresql://localhost:5432/atlas" -SEQUELIZE_SECRET=7a947f4b6b5cd4c769029f7b5130c85fe2d3484758c0eeee351cd2e2d2c3bd59 diff --git a/package.json b/package.json index a233b646..07e7b894 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,15 @@ "^.*[.](s?css|css)$": "/__mocks__/styleMock.js", "^.*[.](gif|ttf|eot|svg)$": "/__test__/fileMock.js" }, - "moduleFileExtensions": ["js", "jsx", "json"], - "moduleDirectories": ["node_modules", "server"], + "moduleFileExtensions": [ + "js", + "jsx", + "json" + ], + "moduleDirectories": [ + "node_modules", + "server" + ], "modulePaths": [ "frontend" ], @@ -133,7 +140,7 @@ "slug": "0.9.1", "string-hash": "^1.1.0", "style-loader": "0.13.0", - "truncate-html": "0.0.6", + "truncate-html": "https://github.com/jorilallo/truncate-html/tarball/master", "url-loader": "0.5.7", "uuid": "2.0.2", "validator": "5.2.0", diff --git a/server/api/user.test.js b/server/api/user.test.js index 061cf3e7..3768321b 100644 --- a/server/api/user.test.js +++ b/server/api/user.test.js @@ -8,11 +8,11 @@ import { flushdb, seed, sequelize } from '../test/support'; const server = new TestServer(app.callback()); beforeEach(flushdb); -beforeEach(seed); afterAll(() => server.close()); afterAll(() => sequelize.close()); it('should return known user', async () => { + await seed(); const user = await User.findOne({ where: { email: 'user1@example.com', @@ -29,6 +29,7 @@ it('should return known user', async () => { }); it('should require authentication', async () => { + await seed(); const res = await server.post('/api/user.info'); const body = await res.json();