Skip to content

Commit

Permalink
test: ✅ add more testing to sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jul 23, 2023
1 parent 4b14b64 commit 2bef00d
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 90 deletions.
129 changes: 93 additions & 36 deletions test/sat/__snapshots__/sensor.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,65 +1,122 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Basic Sensor functionality should be able to get rae coordinates 1`] = `2.629108354091844`;

exports[`Basic Sensor functionality should be able to get rae coordinates 2`] = `-0.4265038258082757`;

exports[`Basic Sensor functionality should be able to get rae coordinates 3`] = `6156.556070063796`;

exports[`Basic Sensor functionality should be able to get rae coordinates 4`] = `2.629108354091844`;

exports[`Basic Sensor functionality should be able to get rae coordinates 5`] = `-0.4265038258082757`;

exports[`Basic Sensor functionality should be able to get rae coordinates 6`] = `6156.556070063796`;

exports[`Basic Sensor functionality should create a lookangles array 1`] = `
Array [
Object {
"az": 185.0321047837688,
"el": 0.018932126219342378,
"rng": 2320.7003088160936,
"time": 2022-08-25T07:51:46.000Z,
"az": 180.13876758624156,
"el": 0.015361507052862225,
"rng": 2342.737908604558,
"time": 2022-08-25T07:15:53.000Z,
"type": 0,
},
Object {
"az": 75.7980806492444,
"el": -0.028830957334440976,
"maxElPass": 0.17148507081196085,
"rng": 2358.7204661051765,
"time": 2022-08-25T07:24:24.000Z,
"type": 2,
},
Object {
"az": 232.18906583186794,
"el": 0.009600433988362477,
"rng": 2347.461425625144,
"time": 2022-08-25T08:50:55.000Z,
"type": 0,
},
Object {
"az": 54.52261565864341,
"el": -0.02413294135461665,
"maxElPass": 1.5418848225221131,
"rng": 2359.154162131899,
"time": 2022-08-25T09:01:48.000Z,
"type": 2,
},
Object {
"az": 273.62009396619993,
"el": 0.04473721840290453,
"rng": 2349.43400753881,
"time": 2022-08-25T10:28:25.000Z,
"type": 0,
},
Object {
"az": 49.638932677761765,
"el": -0.030434434506850978,
"maxElPass": 0.3482094176129491,
"rng": 2358.137482792154,
"time": 2022-08-25T10:38:29.000Z,
"type": 2,
},
Object {
"az": 302.060157955515,
"el": 0.021825330760619138,
"rng": 2354.1913017184143,
"time": 2022-08-25T12:06:27.000Z,
"type": 0,
},
Object {
"az": 286.6828392807201,
"el": -0.03143720527465417,
"maxElPass": 8.887905466445714,
"rng": 2346.1443165688643,
"time": 2022-08-25T08:00:03.000Z,
"az": 62.062147356797546,
"el": -0.047720598190494616,
"maxElPass": 0.23309471413013108,
"rng": 2355.3145751792804,
"time": 2022-08-25T12:15:50.000Z,
"type": 2,
},
Object {
"az": 126.07032765927691,
"el": 0.011464577747703686,
"rng": 2327.848319797019,
"time": 2022-08-25T09:27:12.000Z,
"az": 310.644650630328,
"el": 0.034319691788985335,
"rng": 2351.3514012828773,
"time": 2022-08-25T13:43:37.000Z,
"type": 0,
},
Object {
"az": 338.51245540232674,
"el": -0.004776656652769985,
"maxElPass": 28.303560760507143,
"rng": 2353.0795991791333,
"time": 2022-08-25T09:37:34.000Z,
"az": 93.78468715091233,
"el": -0.05092447343831976,
"maxElPass": 0.41989657303646716,
"rng": 2346.7733683863107,
"time": 2022-08-25T13:53:54.000Z,
"type": 2,
},
Object {
"az": 24.30450924794974,
"el": 0.021759132371179508,
"rng": 2365.173163410431,
"time": 2022-08-25T19:22:17.000Z,
"az": 302.82920181425385,
"el": 0.008831974766942259,
"rng": 2350.585020694925,
"time": 2022-08-25T15:20:18.000Z,
"type": 0,
},
Object {
"az": 230.35934291906204,
"el": -0.029094115923272833,
"maxElPass": 34.603325622933625,
"rng": 2350.6620737684816,
"time": 2022-08-25T19:32:54.000Z,
"az": 136.91615645014073,
"el": -0.06079535528704331,
"maxElPass": 0.9909446544534085,
"rng": 2338.0820302051443,
"time": 2022-08-25T15:31:03.000Z,
"type": 2,
},
Object {
"az": 77.30327662230586,
"el": 0.009671715968386793,
"rng": 2358.781639064529,
"time": 2022-08-25T21:00:08.000Z,
"az": 275.6078287616163,
"el": 0.009865997778276727,
"rng": 2342.5887956584797,
"time": 2022-08-25T16:58:14.000Z,
"type": 0,
},
Object {
"az": 171.14122538519032,
"el": -0.04352163512801034,
"maxElPass": 7.334113831175358,
"rng": 2346.370746417976,
"time": 2022-08-25T21:08:00.000Z,
"az": 193.81307114785773,
"el": -0.03284642331569769,
"maxElPass": 0.09468940062113852,
"rng": 2331.5278975783554,
"time": 2022-08-25T17:05:13.000Z,
"type": 2,
},
]
Expand Down
Loading

0 comments on commit 2bef00d

Please sign in to comment.