diff options
author | bsudekum <bobby@mapbox.com> | 2015-09-04 12:01:34 -0700 |
---|---|---|
committer | bsudekum <bobby@mapbox.com> | 2015-09-04 12:01:34 -0700 |
commit | 3db1421eb10ec329301effef591be656eb3b61f6 (patch) | |
tree | 1d247ed28965a1b472b65344c39396984cd20618 /platform/node/test/js/map.test.js | |
parent | 15a66b8989645b702d207d96f6693ea3ddd93bdc (diff) | |
download | qtlocation-mapboxgl-3db1421eb10ec329301effef591be656eb3b61f6.tar.gz |
Return raw image buffer instead of an object
Diffstat (limited to 'platform/node/test/js/map.test.js')
-rw-r--r-- | platform/node/test/js/map.test.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/node/test/js/map.test.js b/platform/node/test/js/map.test.js index c4e3416322..364907c67b 100644 --- a/platform/node/test/js/map.test.js +++ b/platform/node/test/js/map.test.js @@ -231,14 +231,12 @@ test('Map', function(t) { t.test('returns an image', function(t) { var map = new mbgl.Map(options); map.load(style); - map.render({}, function(err, data) { + map.render({}, function(err, pixels) { t.error(err); map.release(); - t.ok(data.pixels); - t.equal(data.width, 512); - t.equal(data.height, 512); + t.ok(pixels); t.end(); }); }); |