summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-03-11 09:39:02 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-03-11 09:39:02 +0200
commitf7bc408737528a788489ee1c73f7ecf25a62585a (patch)
tree98324db8f2f8bc03eda37cf1503ae704280daad3
parente28b46db64e8ef39a86337062c31e30a2a7979a6 (diff)
downloadqtlocation-mapboxgl-upstream/alexshalamov_revert_es6_exports.tar.gz
[core, node] Use es5 syntax for imports in expressions testsupstream/alexshalamov_revert_es6_exports
Instead of forcing ES6 module syntax, at this point, it is less distruptive to fix expression tests to use ES5 import syntax.
-rw-r--r--platform/node/test/expression.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/node/test/expression.test.js b/platform/node/test/expression.test.js
index 4635ef78f7..b5f39cb4e3 100644
--- a/platform/node/test/expression.test.js
+++ b/platform/node/test/expression.test.js
@@ -1,6 +1,6 @@
-import {run} from '../../../mapbox-gl-js/test/integration/lib/expression';
-import mbgl from '../index';
-import ignores from './ignores.json';
+const {run} = require('../../../mapbox-gl-js/test/integration/lib/expression');
+const mbgl = require('../index');
+const ignores = require('./ignores.json');
let tests;