diff --git a/test/helpers.js b/test/compareVectors.js similarity index 82% rename from test/helpers.js rename to test/compareVectors.js index cdd5801..f0af31c 100644 --- a/test/helpers.js +++ b/test/compareVectors.js @@ -1,4 +1,4 @@ -export function compareVectors(vector1, vector2, numDigits) { +export default function compareVectors(vector1, vector2, numDigits) { if (!numDigits) { expect(vector1.x).toEqual(vector2.x); expect(vector1.y).toEqual(vector2.y); diff --git a/test/ext.test.js b/test/ext.test.js index a973973..c180d29 100644 --- a/test/ext.test.js +++ b/test/ext.test.js @@ -1,4 +1,4 @@ -import { compareVectors } from './helpers'; +import compareVectors from './compareVectors'; import { jday, diff --git a/test/propagation/sgp4.test.js b/test/propagation/sgp4.test.js index fc2bbc8..2628c20 100644 --- a/test/propagation/sgp4.test.js +++ b/test/propagation/sgp4.test.js @@ -1,6 +1,6 @@ import '../ext.test'; -import { compareVectors } from '../helpers'; +import compareVectors from '../compareVectors'; import twoline2satrec from '../../src/io'; import sgp4 from '../../src/propagation/sgp4';