refactor WalletFactory test to use sinon instead of mocks WIP
This commit is contained in:
parent
90e8231aca
commit
c3574ae57f
9 changed files with 223 additions and 114 deletions
|
|
@ -1,5 +1,6 @@
|
|||
'use strict';
|
||||
var preconditions = require('preconditions').singleton();
|
||||
var log = require('../../log');
|
||||
|
||||
function PluginManager(config) {
|
||||
this.registered = {};
|
||||
|
|
@ -11,7 +12,7 @@ function PluginManager(config) {
|
|||
if (!config.plugins[pluginName])
|
||||
continue;
|
||||
|
||||
console.log('Loading plugin: ' + pluginName);
|
||||
log.info('Loading plugin: ' + pluginName);
|
||||
var pluginClass = require('../plugins/' + pluginName);
|
||||
var pluginObj = new pluginClass(config[pluginName]);
|
||||
pluginObj.init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue