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();