-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState0.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_0'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState0 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState1.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_1'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState1 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState10.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_10'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState10 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState11.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_11'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState11 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState12.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_12'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState12 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState13.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_13'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState13 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState14.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_14'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState14 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState15.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_15'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState15 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState16.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_16'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState16 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* eslint-disable no-sync */ | ||
/* eslint-disable prefer-destructuring */ | ||
/** | ||
* @file Test Suite to verify results match OscState17.json which is a subset of the entire catalog from Aug 2022 | ||
* @author Theodore Kruczek. | ||
* @since 1.5.5 | ||
*/ | ||
|
||
import * as fs from 'fs'; | ||
|
||
/** | ||
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022 | ||
*/ | ||
import { Sgp4 } from '../../../lib/ootk'; | ||
|
||
const fileName = 'TLE_17'; | ||
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8'); | ||
// Convert to JSON | ||
const sgp4Data = JSON.parse(rawData); | ||
|
||
describe('OscState17 testing', () => { | ||
sgp4Data.forEach((sgp4DataItem) => { | ||
// Fetching satellite record from TLE lines | ||
const satrec = Sgp4.createSatrec(sgp4DataItem.line1, sgp4DataItem.line2); | ||
const satnum = sgp4DataItem.line1.slice(2, 7); | ||
|
||
it(`${satnum} measurements match snapshot`, () => { | ||
expect(Sgp4.propagate(satrec, 0)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 360)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 720)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1080)).toMatchSnapshot(); | ||
expect(Sgp4.propagate(satrec, 1440)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |