Skip to content

Commit 3baff87

Browse files
davidcalhounDavid Calhoun
andauthored
chore: fix tests, fix vulns (#49)
* fix failing tests * chore: fix vulns * test - try to fix github action --------- Co-authored-by: David Calhoun <david.b.calhoun+github@gmail.com>
1 parent ce8f7b8 commit 3baff87

File tree

3 files changed

+149
-314
lines changed

3 files changed

+149
-314
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
# Restore cache if available.
1111
- name: Restore cached dependencies
1212
id: dep-cache
13-
uses: actions/cache@v2
13+
uses: actions/cache@v4
1414
env:
1515
cache-name: tlejs-cache
1616
with:

__tests__/sgp4.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ describe("getGroundTracks", () => {
229229
const firstLng = coords[0][0][0];
230230
const lastLng = coords[0][coords[0].length - 1][0];
231231

232-
expect(firstLng).toBe(-179.9996305056871);
232+
expect(firstLng).toBeCloseTo(-179.99963050);
233233
expect(lastLng).toBe(179.9939688862288);
234234
});
235235

@@ -263,7 +263,7 @@ describe("getGroundTracksSync", () => {
263263

264264
const firstLng = coords[0][0][0];
265265
const lastLng = coords[0][coords[0].length - 1][0];
266-
expect(firstLng).toBe(-179.9996305056871);
266+
expect(firstLng).toBeCloseTo(-179.9996305);
267267
expect(lastLng).toBe(179.9939688862288);
268268
});
269269

0 commit comments

Comments
 (0)