Set up new api test structure

This commit is contained in:
Blade Barringer
2015-10-17 12:37:17 -05:00
parent 59e2b92dae
commit 02e9775ba7
4 changed files with 63 additions and 3 deletions
+21
View File
@@ -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);
});
});
});