mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
22 lines
419 B
JavaScript
22 lines
419 B
JavaScript
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);
|
|
});
|
|
});
|
|
});
|