From d7a0c4965b912e31565b1afdf5e3c593ec6602dd Mon Sep 17 00:00:00 2001 From: hudson-newey Date: Wed, 8 Nov 2023 13:39:13 +1000 Subject: [PATCH] Realigned harvest list tests --- .../harvest/pages/list/list.component.spec.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/components/harvest/pages/list/list.component.spec.ts b/src/app/components/harvest/pages/list/list.component.spec.ts index a625b6911..19e56fd4b 100644 --- a/src/app/components/harvest/pages/list/list.component.spec.ts +++ b/src/app/components/harvest/pages/list/list.component.spec.ts @@ -267,14 +267,10 @@ describe("ListComponent", () => { it("should make the correct api calls for an unscoped harvest list", () => { // to unscope the harvest list, we return `null` from the project getter const harvestApi = setup(null, defaultHarvest); - expect(harvestApi.filter).toHaveBeenCalledWith( + expect(harvestApi.filter).not.toHaveBeenCalledWith( jasmine.objectContaining({ - filter: { - projectId: { - eq: undefined, - }, - }, - }), + filter: jasmine.any(Object), + }) ); });