move statement to correct test
This commit is contained in:
@@ -139,7 +139,6 @@ describe(LibraryService.name, () => {
|
|||||||
|
|
||||||
it('should not initialize watcher when watching is disabled', async () => {
|
it('should not initialize watcher when watching is disabled', async () => {
|
||||||
configMock.load.mockResolvedValue(systemConfigStub.libraryWatchEnabled);
|
configMock.load.mockResolvedValue(systemConfigStub.libraryWatchEnabled);
|
||||||
databaseMock.tryLock.mockResolvedValue(false);
|
|
||||||
|
|
||||||
await sut.init();
|
await sut.init();
|
||||||
|
|
||||||
@@ -148,6 +147,7 @@ describe(LibraryService.name, () => {
|
|||||||
|
|
||||||
it('should not initialize watcher when lock is taken', async () => {
|
it('should not initialize watcher when lock is taken', async () => {
|
||||||
configMock.load.mockResolvedValue(systemConfigStub.libraryWatchDisabled);
|
configMock.load.mockResolvedValue(systemConfigStub.libraryWatchDisabled);
|
||||||
|
databaseMock.tryLock.mockResolvedValue(false);
|
||||||
|
|
||||||
await sut.init();
|
await sut.init();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user