Add more tests to check for buffer

This commit is contained in:
bsudekum
2015-09-04 12:24:54 -07:00
parent 3db1421eb1
commit 7cbf958c30

View File

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