Set up new api test structure
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import {requester} from '../helpers/api.helper';
|
||||
|
||||
describe('Status', () => {
|
||||
let api;
|
||||
|
||||
beforeEach(() => {
|
||||
api = requester();
|
||||
});
|
||||
|
||||
it('returns a status of up when server is up', (done) => {
|
||||
api.get('/status')
|
||||
.then((res) => {
|
||||
expect(res.code).to.eql(200);
|
||||
expect(res.body.status).to.eql('up');
|
||||
done();
|
||||
})
|
||||
.catch((err) => {
|
||||
done(err);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user