Skip to content

Commit

Permalink
test(tests): updated references to .es.js files
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 16, 2021
1 parent 4d93228 commit 0d2fec2
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ npm i ootk
### Common.js ([Node.js](https://nodejs.org))

```js
let Ootk = require('ootk.js');
let Ootk = require('dist/ootk.js');
...
const satrec = Ootk.Sgp4.createSatrec(line1, line2, 'wgs72', 'i');
```

### ES ([Babel.js](https://babeljs.io/))

```js
import * as Ootk from 'ootk.js';
import * as Ootk from 'lib/ootk.es.js';
...
const satrec = Ootk.Sgp4.createSatrec(line1, line2, 'wgs72', 'i');
```
Expand Down
4 changes: 2 additions & 2 deletions test/multi/multi.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Multi } from '@lib/ootk-multi.js';
import { Sgp4 } from '@lib/ootk-sgp4.js';
import { Multi } from '@lib/ootk-multi.es.js';
import { Sgp4 } from '@lib/ootk-sgp4.es.js';

describe('test non webworker functions', () => {
test('if chunkArray works', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/sgp4/legacy/ext.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { compareVectors } from '@test/lib/compareVectors';
import { Sgp4 } from '@lib/ootk-sgp4.js'; // eslint-disable-line
import { Sgp4 } from '@lib/ootk-sgp4.es.js'; // eslint-disable-line

describe.skip('Julian date / time', () => {
let now;
Expand Down
2 changes: 1 addition & 1 deletion test/sgp4/legacy/initl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @since 0.2.0
*/

import { Sgp4 } from '@lib/ootk-sgp4.js'; // eslint-disable-line
import { Sgp4 } from '@lib/ootk-sgp4.es.js'; // eslint-disable-line

// wgs84 constants
const mu = 398600.8; // in km3 / s2
Expand Down
2 changes: 1 addition & 1 deletion test/sgp4/legacy/io.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import badTleData from './io.json';
import { Sgp4 } from '@lib/ootk-sgp4.js'; // eslint-disable-line
import { Sgp4 } from '@lib/ootk-sgp4.es.js'; // eslint-disable-line

describe('Twoline', () => {
it('twoline to satellite record', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/sgp4/rsr/rsr3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* sgp4Data is from https://www.celestrak.com/publications/AIAA/2006-6753/AIAA-2006-6753-Rev1.pdf
* Only using the first and last state vectors for verification
*/
import { Sgp4 } from '@lib/ootk-sgp4.js';
import { Sgp4 } from '@lib/ootk-sgp4.es.js';
import { compareVectors } from '@test/lib/compareVectors';
import sgp4Data from './rsr3.json';
import sgp4FailData from './rsr3-fail.json';
Expand Down
2 changes: 1 addition & 1 deletion test/sgp4/sgp4-full-cov.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @since 0.2.0
*/

import { Sgp4 } from '@lib/ootk-sgp4.js';
import { Sgp4 } from '@lib/ootk-sgp4.es.js';
import sgp4Data from './sgp4-full-cov.json';
import sgp4FailData from './sgp4-full-cov-fail.json';

Expand Down
2 changes: 1 addition & 1 deletion test/transforms/transforms.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @since 0.2.0
*/

import { Transforms } from '@lib/ootk-transforms.js'; // eslint-disable-line
import { Transforms } from '@lib/ootk-transforms.es.js'; // eslint-disable-line
import transformData from './transforms.json';

const numDigits = 6;
Expand Down
2 changes: 1 addition & 1 deletion test/utils/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @since 1.0.0-alpha3
*/

import { Utils } from '@lib/ootk-utils.js'; // eslint-disable-line
import { Utils } from '@lib/ootk-utils.es.js'; // eslint-disable-line

const numDigits = 8;

Expand Down

0 comments on commit 0d2fec2

Please sign in to comment.