Skip to content

Commit

Permalink
fix(stark-core): fix failing XSRF service test
Browse files Browse the repository at this point in the history
  • Loading branch information
christophercr committed Sep 27, 2018
1 parent 9fa725c commit c3d2589
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> = new Subject<any>();
spyOn(xsrfService, "getWaitBeforePingingObs").and.returnValue(mockWaitBeforePinging$);

Expand Down

0 comments on commit c3d2589

Please sign in to comment.