Now .getLayergroup() in test client accepts params to perform custom instantiations

This commit is contained in:
Daniel García Aubert
2017-12-05 12:09:31 +01:00
parent 499e9de75d
commit 66b41a6ae7
12 changed files with 82 additions and 52 deletions
@@ -151,7 +151,7 @@ describe('multilayer error cases', function() {
};
ServerOptions.afterLayergroupCreateCalls = 0;
this.client = new TestClient(layergroup);
this.client.getLayergroup({status: 400}, function(err, parsed) {
this.client.getLayergroup({ response: { status: 400 } }, function(err, parsed) {
assert.ok(!err, err);
// See http://github.com/CartoDB/Windshaft/issues/159
assert.equal(ServerOptions.afterLayergroupCreateCalls, 0);