summaryrefslogtreecommitdiff
path: root/platform/node/test
diff options
context:
space:
mode:
Diffstat (limited to 'platform/node/test')
-rw-r--r--platform/node/test/js/map.test.js2
-rw-r--r--platform/node/test/suite_implementation.js4
2 files changed, 6 insertions, 0 deletions
diff --git a/platform/node/test/js/map.test.js b/platform/node/test/js/map.test.js
index 7321572637..e2ff8d85d0 100644
--- a/platform/node/test/js/map.test.js
+++ b/platform/node/test/js/map.test.js
@@ -115,7 +115,9 @@ test('Map', function(t) {
'setPaintProperty',
'setFilter',
'setCenter',
+ 'setZoom',
'setBearing',
+ 'setPitch',
'dumpDebugLogs',
'queryRenderedFeatures'
]);
diff --git a/platform/node/test/suite_implementation.js b/platform/node/test/suite_implementation.js
index 6747a14151..28c2068345 100644
--- a/platform/node/test/suite_implementation.js
+++ b/platform/node/test/suite_implementation.js
@@ -74,8 +74,12 @@ module.exports = function (style, options, callback) {
// Ensure that the next `map.render(options)` does not overwrite this change.
if (operation[0] === 'setCenter') {
options.center = operations[1];
+ } else if (operation[0] === 'setZoom') {
+ options.zoom = operations[1];
} else if (operation[0] === 'setBearing') {
options.bearing = operations[1];
+ } else if (operation[0] === 'setPitch') {
+ options.pitch = operations[1];
}
map[operation[0]].apply(map, operation.slice(1));