From 2c8ebd43ccbbd5a1a9685eac7bb2fa3a08aa8028 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 6 Aug 2024 17:26:36 -0500 Subject: [PATCH] Update ApiCacheManager unit test --- test/server/managers/ApiCacheManager.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/server/managers/ApiCacheManager.test.js b/test/server/managers/ApiCacheManager.test.js index dc1ee1ed..19bbeecf 100644 --- a/test/server/managers/ApiCacheManager.test.js +++ b/test/server/managers/ApiCacheManager.test.js @@ -11,8 +11,8 @@ describe('ApiCacheManager', () => { let manager beforeEach(() => { - cache = { get: sinon.stub(), set: sinon.spy() } - req = { user: { username: 'testUser' }, url: '/test-url' } + cache = { get: sinon.stub(), set: sinon.spy() } + req = { user: { username: 'testUser' }, url: '/test-url', query: {} } res = { send: sinon.spy(), getHeaders: sinon.stub(), statusCode: 200, status: sinon.spy(), set: sinon.spy() } next = sinon.spy() }) @@ -94,4 +94,4 @@ describe('ApiCacheManager', () => { expect(res.originalSend.calledWith(body)).to.be.true }) }) -}) \ No newline at end of file +})