mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Update unit test stub function
This commit is contained in:
parent
d5ce7b4939
commit
ac159bea72
@ -157,7 +157,7 @@ describe('LibraryItemController', () => {
|
|||||||
|
|
||||||
it('should remove authors and series with no books on library item update media', async () => {
|
it('should remove authors and series with no books on library item update media', async () => {
|
||||||
const libraryItem = await Database.libraryItemModel.getExpandedById(libraryItem1Id)
|
const libraryItem = await Database.libraryItemModel.getExpandedById(libraryItem1Id)
|
||||||
|
libraryItem.saveMetadataFile = sinon.stub()
|
||||||
// Update library item 1 remove all authors and series
|
// Update library item 1 remove all authors and series
|
||||||
const fakeReq = {
|
const fakeReq = {
|
||||||
query: {},
|
query: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user