From 6fdffe798f5c1afd209a841c528af31af14a86f2 Mon Sep 17 00:00:00 2001 From: Johnny Ilmo Koo Date: Sun, 29 Dec 2019 18:00:36 +0900 Subject: [PATCH] Fail test --- package.json | 2 +- src/test/auth.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f6a1cdf..5fb2014 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "mocha", + "test": "mocha ./src/*", "start": "node ./src/bin/www" }, "keywords": [], diff --git a/src/test/auth.test.js b/src/test/auth.test.js index 55331d4..d8d9124 100644 --- a/src/test/auth.test.js +++ b/src/test/auth.test.js @@ -26,7 +26,7 @@ describe("User registration", () => { .then(res => { //console.log(res.body); //assertions - expect(res).to.have.status(201); + expect(res).to.have.status(301); expect(res.body.message).to.be.equal("User created!"); expect(res.body.errors.length).to.be.equal(0); done();