refactor baseUrl in angular-bwc
This commit is contained in:
parent
a8ef458941
commit
6bd316424a
4 changed files with 21 additions and 43 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue