Skip to content

Commit

Permalink
feat: qualifications tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeen committed Dec 5, 2021
1 parent 1693e8f commit e282581
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/resources/qualifications.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import chai from 'chai';
import chaiHttp from 'chai-http';
import app from '../../src/server';

// Configure chai
chai.use(chaiHttp);
chai.should();

describe('Qualifications Routes', () => {
describe('GET /v1/qualifications/', () => {
it('should get all qualifications', () => {
chai.request(app)
.get('/v1/qualifications/?useMock=true')
.end((err, res) => {
res.should.have.status(200);
res.body.should.be.a('array');
});
});
});
describe('GET /v1/qualifications/?id=1', () => {
it('should get a single qualification', () => {
chai.request(app)
.get('/v1/qualifications/?useMock=true&id=1')
.end((err, res) => {
res.should.have.status(200);
res.body.should.be.a('object');
});
});
});
});

0 comments on commit e282581

Please sign in to comment.