Skip to content

Commit

Permalink
added missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiwo authored and kenodressel committed Mar 25, 2020
1 parent ca9bed4 commit cb035e3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ describe('Cache', () => {
done();
});
});

it('it should GET all oracle cache items', function (done) {
this.timeout(25000);

chai.request(server).get('/cache/oracle').end((err, res) => {
res.should.have.status(200);
res.body.should.be.a('object');
done();
});
});

it('it should invalidate the tips cache', function (done) {
this.timeout(25000);

chai.request(server).get('/cache/invalidate/tips').end((err, res) => {
res.should.have.status(200);
res.body.should.be.a('object');
done();
});
});
});
describe('Interface', () => {
it('it should return ok on status interface', function(done) {
Expand Down

0 comments on commit cb035e3

Please sign in to comment.