Archived
2

cannot add username twice

This commit is contained in:
VLE2FE
2020-04-22 17:38:24 +02:00
parent f23b65d3d8
commit 90d34f1e1b
7 changed files with 28 additions and 18 deletions

View File

@ -8,6 +8,7 @@ describe('/', () => {
before(done => {
process.env.port = '2999';
process.env.NODE_ENV = 'test';
db.connect('test', done);
});
beforeEach(done => {
@ -26,7 +27,7 @@ describe('/', () => {
.get('/')
.expect('Content-type', /json/)
.expect(200, (err, res) => {
should(res.body).be.eql({message: 'API server up and running!'});
should(res.body).be.eql({status: 'API server up and running!'});
done();
});
});