summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-12-13 15:08:27 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-12-14 12:15:29 -0800
commit07e58fe96162d092407909d4882eb5af865d8760 (patch)
treed9c6f70288045a211de54c934b58be6bb6a25e6b
parenteb42b37568e1a655a6ec5bfb110e2a7a34f82f01 (diff)
downloadqtlocation-mapboxgl-07e58fe96162d092407909d4882eb5af865d8760.tar.gz
[tests] Fix variable reference in test-suite harness
-rw-r--r--platform/node/test/suite_implementation.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/node/test/suite_implementation.js b/platform/node/test/suite_implementation.js
index 05b8113afb..3abf4136c4 100644
--- a/platform/node/test/suite_implementation.js
+++ b/platform/node/test/suite_implementation.js
@@ -68,13 +68,13 @@ module.exports = function (style, options, callback) {
} else {
// Ensure that the next `map.render(options)` does not overwrite this change.
if (operation[0] === 'setCenter') {
- options.center = operations[1];
+ options.center = operation[1];
} else if (operation[0] === 'setZoom') {
- options.zoom = operations[1];
+ options.zoom = operation[1];
} else if (operation[0] === 'setBearing') {
- options.bearing = operations[1];
+ options.bearing = operation[1];
} else if (operation[0] === 'setPitch') {
- options.pitch = operations[1];
+ options.pitch = operation[1];
}
map[operation[0]].apply(map, operation.slice(1));