From cb035e3bdca248eb39ed008d483f9249dd0df175 Mon Sep 17 00:00:00 2001 From: Philipp Piwo Date: Wed, 25 Mar 2020 16:39:37 +0100 Subject: [PATCH] added missing tests --- test/cache.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/cache.js b/test/cache.js index 07ca861a..729cf5f0 100644 --- a/test/cache.js +++ b/test/cache.js @@ -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) {