Fix library item unit test

This commit is contained in:
advplyr 2024-12-15 12:38:50 -06:00
parent 4c68ad46f4
commit 302b651e7b

View File

@ -6,7 +6,6 @@ const Database = require('../../../server/Database')
const ApiRouter = require('../../../server/routers/ApiRouter') const ApiRouter = require('../../../server/routers/ApiRouter')
const LibraryItemController = require('../../../server/controllers/LibraryItemController') const LibraryItemController = require('../../../server/controllers/LibraryItemController')
const ApiCacheManager = require('../../../server/managers/ApiCacheManager') const ApiCacheManager = require('../../../server/managers/ApiCacheManager')
const RssFeedManager = require('../../../server/managers/RssFeedManager')
const Logger = require('../../../server/Logger') const Logger = require('../../../server/Logger')
describe('LibraryItemController', () => { describe('LibraryItemController', () => {
@ -20,8 +19,7 @@ describe('LibraryItemController', () => {
await Database.buildModels() await Database.buildModels()
apiRouter = new ApiRouter({ apiRouter = new ApiRouter({
apiCacheManager: new ApiCacheManager(), apiCacheManager: new ApiCacheManager()
rssFeedManager: new RssFeedManager()
}) })
sinon.stub(Logger, 'info') sinon.stub(Logger, 'info')