Skip to content

Commit

Permalink
bsr(JOB-17) : add missing test on jobs api
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Trollé committed Jul 18, 2017
1 parent 59a3be1 commit e780a84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/test/integration/routes/jobs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,14 @@ describe('Integration | Routes | jobs route', () => {
request(app)
.get('/api/jobs?refresh=true')
.set('Authorization', 'Bearer access-token')
.expect(200, (err) => {
.expect(200, (err, res) => {
// then
if (err) {
done(err);
}
expect(cache.del).to.have.been.called;
expect(cache.set).to.have.been.called;
expect(res.body).to.deep.equal(stubbedJobs);
done();
});
});
Expand Down

0 comments on commit e780a84

Please sign in to comment.