Commit 88929cf1 authored by David Gatica's avatar David Gatica

se modifica this por that en src/index.js para no perder contexto en handleError

parent 9bf0577b
...@@ -149,9 +149,9 @@ class ZimbraAdminApi { ...@@ -149,9 +149,9 @@ class ZimbraAdminApi {
} else { } else {
const that = this; const that = this;
let getCallback = function(err, response){ let getCallback = function(err, response){
if (err) return this.handleError(err); if (err) return that.handleError(err);
if (request_data.batch) return that.makeBatchRequest(request_data.requests, request_data.callback); if (request_data.batch) return that.makeBatchRequest(request_data.requests, request_data.callback);
that.makeRequest(request_data); that.makeRequest(request_data)
}; };
this.login(getCallback); this.login(getCallback);
} }
......
...@@ -884,7 +884,7 @@ var zimbraAdminPassword = process.env.ZIMBRA_PASSWORD || '12345678'; ...@@ -884,7 +884,7 @@ var zimbraAdminPassword = process.env.ZIMBRA_PASSWORD || '12345678';
}); });
}); });
it.only('Should create a copy of Cos Professional', function(done){ it.skip('Should create a copy of Cos Professional', function(done){
let api = new ZimbraAdminApi(auth_data); let api = new ZimbraAdminApi(auth_data);
let newCos = Date.now(); let newCos = Date.now();
api.copyCos("professional", newCos, function(err, res){ api.copyCos("professional", newCos, function(err, res){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment