Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
madhums committed Jul 21, 2021
1 parent ccae109 commit 4de783b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"start": "cross-env NODE_ENV=development nodemon server.js",
"debug": "cross-env NODE_ENV=development nodemon --debug server.js",
"test": "cross-env NODE_ENV=test babel-tape-runner test/test-*.js",
"pretest": "eslint .",
"prod": "pm2-runtime start ecosystem.config.js --env production"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test/test-articles-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const _user = {

test('Clean up', cleanup);

test('Create user', async t => {
test('Create user', async () => {
const user = new User(_user);
return await user.save(t.end);
return await user.save();
});

test('POST /articles - when not logged in - should redirect to /login', t => {
Expand Down

0 comments on commit 4de783b

Please sign in to comment.