mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Update ApiCacheManager unit test
This commit is contained in:
parent
9f561aa296
commit
2c8ebd43cc
@ -12,7 +12,7 @@ describe('ApiCacheManager', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cache = { get: sinon.stub(), set: sinon.spy() }
|
cache = { get: sinon.stub(), set: sinon.spy() }
|
||||||
req = { user: { username: 'testUser' }, url: '/test-url' }
|
req = { user: { username: 'testUser' }, url: '/test-url', query: {} }
|
||||||
res = { send: sinon.spy(), getHeaders: sinon.stub(), statusCode: 200, status: sinon.spy(), set: sinon.spy() }
|
res = { send: sinon.spy(), getHeaders: sinon.stub(), statusCode: 200, status: sinon.spy(), set: sinon.spy() }
|
||||||
next = sinon.spy()
|
next = sinon.spy()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user