cannot add username twice
This commit is contained in:
@ -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();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user