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 13:43:08 +0200
commitf84019cb89cc8274be7bb1fda3855b738281bdac (patch)
tree98324db8f2f8bc03eda37cf1503ae704280daad3
parentdebbd08ff0cc41be2947d3de55c44be2cc4d4a64 (diff)
downloadqtlocation-mapboxgl-f84019cb89cc8274be7bb1fda3855b738281bdac.tar.gz
[core, node] Use es5 syntax for imports in expressions tests
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;