Use ifError to check for errors

This commit is contained in:
Javier Goizueta 2018-05-21 16:59:36 +02:00
parent 4711b28c25
commit d828a92ea3

View File

@ -346,7 +346,7 @@ describe('Create mapnik layergroup', function() {
}
testClient.getLayergroup(function(err, layergroup) {
assert.ok(!err);
assert.ifError(err);
assert.equal(layergroup.metadata.layers[0].id, mapnikBasicLayerId(0));
assert.equal(layergroup.metadata.layers[0].meta.stats.estimatedFeatureCount, 5);
const expectedColumns = {