diff options
author | bsudekum <bobby@mapbox.com> | 2015-09-04 12:24:54 -0700 |
---|---|---|
committer | bsudekum <bobby@mapbox.com> | 2015-09-04 12:24:54 -0700 |
commit | 7cbf958c3030be2dd9204916e8047b7a688424fd (patch) | |
tree | 4d0366f6b969444ac7865cf354bcf1d0117671de /platform/node | |
parent | 3db1421eb10ec329301effef591be656eb3b61f6 (diff) | |
download | qtlocation-mapboxgl-7cbf958c3030be2dd9204916e8047b7a688424fd.tar.gz |
Add more tests to check for buffer
Diffstat (limited to 'platform/node')
-rw-r--r-- | platform/node/test/js/map.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/node/test/js/map.test.js b/platform/node/test/js/map.test.js index 364907c67b..b3934e4fd7 100644 --- a/platform/node/test/js/map.test.js +++ b/platform/node/test/js/map.test.js @@ -233,10 +233,10 @@ test('Map', function(t) { map.load(style); map.render({}, function(err, pixels) { t.error(err); - map.release(); - t.ok(pixels); + t.ok(pixels instanceof Buffer); + t.equal(pixels.length, 512 * 512 * 4) t.end(); }); }); |