Jasmine async call
I have been debugging this Jasmine spec:
it(`should return tactic`, (done) => {
source.updateTactic(1, {
startDate: new Date(),
endDate: new Date(),
name: 'First Tactic',
}).subscribe((response) => {
expect(response).toEqual(updatedTacticJsonResponse);
});
http.expectOne(`${BASE_URL}/v1/tactics/1`).flush(updatedTacticJsonResponse);
});
with error message:
Error: Timeout - Async…