refactor baseUrl in angular-bwc

This commit is contained in:
Matias Alejo Garcia 2016-06-01 15:49:20 -03:00
commit 6bd316424a
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
4 changed files with 21 additions and 43 deletions

View file

@ -93,13 +93,11 @@ mocks.init = function(fixtures, controllerName, opts, done) {
$delegate.getClient = function(walletData) {
var bwc = new $delegate.Client({
baseUrl: config.baseUrl,
verbose: config.verbose,
transports: config.transports
});
var bwc = new $delegate.Client();
if (walletData)
bwc.import(walletData);
bwc.import(walletData, {
baseUrl: config.baseUrl
});
function createHash(method, url, args) {
var headers = JSON.stringify(bwc._getHeaders(method, url, args));