[tests] Fix variable reference in test-suite harness

This commit is contained in:
John Firebaugh
2016-12-13 15:08:27 -08:00
parent eb42b37568
commit 07e58fe961

View File

@@ -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));