From 7cbf958c3030be2dd9204916e8047b7a688424fd Mon Sep 17 00:00:00 2001 From: bsudekum Date: Fri, 4 Sep 2015 12:24:54 -0700 Subject: [PATCH] Add more tests to check for buffer --- platform/node/test/js/map.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/node/test/js/map.test.js b/platform/node/test/js/map.test.js index 364907c67..b3934e4fd 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(); }); });