diff --git a/packages/stark-core/src/modules/xsrf/services/xsrf.service.spec.ts b/packages/stark-core/src/modules/xsrf/services/xsrf.service.spec.ts index ff71134397..e56e447291 100644 --- a/packages/stark-core/src/modules/xsrf/services/xsrf.service.spec.ts +++ b/packages/stark-core/src/modules/xsrf/services/xsrf.service.spec.ts @@ -321,6 +321,7 @@ describe("Service: StarkXSRFService", () => { })); it("should NOT trigger any HTTP call until the waitBeforePinging observable emits", () => { + httpMock.get.and.returnValue(of(new HttpResponse({ body: "ping OK" }))); const mockWaitBeforePinging$: Subject = new Subject(); spyOn(xsrfService, "getWaitBeforePingingObs").and.returnValue(mockWaitBeforePinging$);