-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,174 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
language: node_js | ||
node_js: | ||
- "15" | ||
- "14" | ||
- "13" | ||
- "12" | ||
- "11" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"extends": "airbnb-base", | ||
"env": { | ||
"jest": true | ||
} | ||
} | ||
{ | ||
"extends": "airbnb-base", | ||
"env": { | ||
"jest": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[ | ||
{ | ||
"tleLine1": "1 00001U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", | ||
"tleLine2": "2 00001 34.2508 325.6936 1846988 181.8107 177.4919 00.00000000227203", | ||
"description": "Mean motion is zero and that is not allowed.", | ||
"results": [{ | ||
"error": 2 | ||
}] | ||
}, | ||
{ | ||
"tleLine1": "1 00002U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", | ||
"tleLine2": "2 00002 34.2508 325.6936 1846988 181.8107 177.4919 00.00000001227203", | ||
"description": "Eccentricity is way too high because mean motion is nearly zero.", | ||
"results": [{ | ||
"error": 3 | ||
}] | ||
}, | ||
{ | ||
"tleLine1": "1 00004U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", | ||
"tleLine2": "2 00004 34.2508 325.6936 9999999 181.8107 177.4919 10.84863720227203", | ||
"description": "Mean motion is zero and that is not allowed.", | ||
"results": [{ | ||
"error": 4 | ||
}] | ||
}, | ||
{ | ||
"tleLine1": "1 00006U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", | ||
"tleLine2": "2 00005 34.2508 325.6936 1846988 181.8107 177.4919 25.84863720227203", | ||
"description": "Satellite should be decayed already.", | ||
"results": [{ | ||
"error": 6 | ||
}] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import twoline2satrec from '../src/io'; // eslint-disable-line | ||
import twoline2satrec from '../src/io'; | ||
import badTleData from './io.json'; | ||
|
||
describe('Twoline', () => { | ||
it('twoline to satellite record', () => { | ||
// TODO: | ||
badTleData.forEach((tleDataItem) => { | ||
const satrec = twoline2satrec(tleDataItem.tleLine1, tleDataItem.tleLine2); | ||
tleDataItem.results.forEach((expected) => { | ||
// Fetching satellite record from incorrectly formatted TLE lines | ||
expect(satrec.error).toEqual(expected.error); | ||
}); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.