Skip to content

Commit

Permalink
Fix RequestService test failing because of different lastUpdated time
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevryghem committed Oct 21, 2023
1 parent bf8519c commit fb31533
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/core/data/request.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit fb31533

Please sign in to comment.