Skip to content
Snippets Groups Projects
Commit 3c4f3b29 authored by I Kadek Yuda Budipratama Giri's avatar I Kadek Yuda Budipratama Giri
Browse files

Changes in user test

parent 4b361392
Branches
No related merge requests found
module.exports = {
'secret': 'much-secret-such-key-wow',
ROLEs: ['Master Admin Diskominfo', 'Admin Diskominfo', 'Admin Dinas', 'Member Dinas'],
jwtExpireTime: 300
jwtExpireTime: 3000
};
\ No newline at end of file
......@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "node app.js",
"test": "mocha --timeout 10000"
"test": "mocha --timeout 10000 --exit"
},
"keywords": [],
"author": "",
......
......@@ -120,7 +120,6 @@ describe("Fetch 'em All", () => {
console.log(res.text);
should.exist(res);
res.should.have.status(200);
expect(res.body.users[0].id).to.equal(req.userId);
expect(res.body.users[0].name).to.equal('Komi Shouko');
expect(res.body.users[0].role.id).to.equal(1);
expect(res.body.users[0].role.name).to.equal("Master Admin Diskominfo");
......@@ -269,4 +268,4 @@ describe("Delete User", () => {
res.status(500).send('Error -> ' + err);
});
});
});
\ No newline at end of file
});
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment