From fb315335c90a0e2dde367e473a2e73729fedc429 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Sat, 21 Oct 2023 14:45:37 +0200 Subject: [PATCH] Fix RequestService test failing because of different lastUpdated time --- src/app/core/data/request.service.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/core/data/request.service.spec.ts b/src/app/core/data/request.service.spec.ts index d1a1f66e41a..61091c79404 100644 --- a/src/app/core/data/request.service.spec.ts +++ b/src/app/core/data/request.service.spec.ts @@ -661,7 +661,9 @@ describe('RequestService', () => { spyOn(service, 'getByHref').and.returnValue(observableOf(staleRE)); spyOn(store, 'dispatch'); service.setStaleByHref(href).subscribe(() => { - expect(store.dispatch).toHaveBeenCalledWith(new RequestStaleAction(uuid)); + const requestStaleAction = new RequestStaleAction(uuid); + requestStaleAction.lastUpdated = jasmine.any(Number) as any; + expect(store.dispatch).toHaveBeenCalledWith(requestStaleAction); done(); }); });