]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Couple more test fixes
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 14 Feb 2025 04:09:58 +0000 (20:09 -0800)
committershamoon <4887959+shamoon@users.noreply.github.com>
Mon, 17 Feb 2025 16:19:11 +0000 (08:19 -0800)
src-ui/src/app/components/admin/settings/settings.component.spec.ts
src-ui/src/app/components/admin/tasks/tasks.component.spec.ts
src-ui/src/app/data/paperless-task.ts

index 4f50e745319c9ba0c9ef6df64dd221e489a5b9a1..3ab7f250b7601bbee52846febabfcaedf714a7ac 100644 (file)
@@ -309,6 +309,9 @@ describe('SettingsComponent', () => {
         classifier_status: SystemStatusItemStatus.OK,
         classifier_last_trained: new Date().toISOString(),
         classifier_error: null,
+        sanity_check_status: SystemStatusItemStatus.ERROR,
+        sanity_check_last_run: new Date().toISOString(),
+        sanity_check_error: 'Error running sanity check.',
       },
     }
     jest.spyOn(systemStatusService, 'get').mockReturnValue(of(status))
index a0a6f9ea0e5fd2d951d4268d4d01c19ae4f102dd..5aa53052a1d3fa99872fc90b9b8864636f31cce4 100644 (file)
@@ -155,7 +155,7 @@ describe('TasksComponent', () => {
     jest.useFakeTimers()
     fixture.detectChanges()
     httpTestingController
-      .expectOne(`${environment.apiBaseUrl}tasks/`)
+      .expectOne(`${environment.apiBaseUrl}tasks/?type=file`)
       .flush(tasks)
   })
 
index d15f006d78fd625d0650d23cb5f32b4887a4f3ec..5b2003704adafe265d636a5e510b998e975a16ec 100644 (file)
@@ -1,8 +1,9 @@
 import { ObjectWithId } from './object-with-id'
 
 export enum PaperlessTaskType {
-  // just file tasks, for now
   File = 'file',
+  ScheduledTask = 'scheduled_task',
+  ManualTask = 'manual_task',
 }
 
 export enum PaperlessTaskStatus {