From 693a10422058f6f08f80c4eda2c21c2ba9cf6ebb Mon Sep 17 00:00:00 2001 From: Juha Alanen Date: Wed, 21 Aug 2019 13:55:38 +0300 Subject: [node] enable feature state tests --- platform/node/test/suite_implementation.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'platform/node/test/suite_implementation.js') diff --git a/platform/node/test/suite_implementation.js b/platform/node/test/suite_implementation.js index f868af8ece..386bd41092 100644 --- a/platform/node/test/suite_implementation.js +++ b/platform/node/test/suite_implementation.js @@ -122,6 +122,12 @@ export default function (style, options, callback) { map.load(operation[1]); applyOperations(operations.slice(1), callback); + } else if (operation[0] ==='setFeatureState' || operation[0] ==='getFeatureState' || operation[0] ==='removeFeatureState') { + map.render(options, function () { + map[operation[0]].apply(map, operation.slice(1)); + applyOperations(operations.slice(1), callback); + }); + } else { // Ensure that the next `map.render(options)` does not overwrite this change. if (operation[0] === 'setCenter') { -- cgit v1.2.1