From 53fc4549da1bf705419db8e72791288d3abdcfcb Mon Sep 17 00:00:00 2001 From: Dmitriy Pushkov Date: Tue, 21 Jan 2020 20:33:37 +0300 Subject: [PATCH] ESLint error in tests is fixed. --- test/{helpers.js => compareVectors.js} | 2 +- test/ext.test.js | 2 +- test/propagation/sgp4.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename test/{helpers.js => compareVectors.js} (82%) 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';