Skip to content

Commit

Permalink
Add stricter tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
na9da committed Aug 28, 2023
1 parent d796971 commit 40a7fc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Models/LeafletSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ describe("Leaflet Model", function () {
};
leaflet.map.fireEvent("mousemove", stubMouseMoveEvent);
expect(leaflet.mouseCoords.cartographic).toBeDefined();
const { longitude, latitude, height } = leaflet.mouseCoords.cartographic!;
expect(longitude).toBeCloseTo(-23, 0);
expect(latitude).toBeCloseTo(1.5707);
expect(height).toBe(0);
});
});
});

0 comments on commit 40a7fc5

Please sign in to comment.