Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jul 14, 2024
1 parent c102b16 commit dee57dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IsraelHiking.Web/src/application/services/poi.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ describe("Poi Service", () => {
mockBackend.match(r => r.url.startsWith(Urls.poiCategories)).forEach(t => t.flush([{ icon: "icon", name: "Water" }]));
await new Promise((resolve) => setTimeout(resolve, 100)); // this is in order to let the code continue to run to the next await

expect(poiService.poiGeojsonFiltered.features.length).toBe(2);
expect(poiService.poiGeojsonFiltered.features.length).toBe(3);

mapServiceMock.map.querySourceFeatures = () => [
{
Expand Down Expand Up @@ -193,7 +193,7 @@ describe("Poi Service", () => {

await new Promise((resolve) => setTimeout(resolve, 100)); // this is in order to let the code continue to run to the next await

expect(poiService.poiGeojsonFiltered.features.length).toBe(4);
expect(poiService.poiGeojsonFiltered.features.length).toBe(6);

return promise;
}
Expand Down

0 comments on commit dee57dd

Please sign in to comment.