mirror of https://github.com/BTCPrivate/copay.git
settings: fix test 3
This commit is contained in:
parent
6a9ad9c01e
commit
296ddf3625
|
@ -29,7 +29,8 @@ var preconditions = require('preconditions').singleton();
|
|||
*/
|
||||
|
||||
var Insight = function(opts) {
|
||||
preconditions.checkArgument(opts).shouldBeObject(opts)
|
||||
preconditions.checkArgument(opts)
|
||||
.shouldBeObject(opts)
|
||||
.checkArgument(opts.host)
|
||||
.checkArgument(opts.port)
|
||||
.checkArgument(opts.schema);
|
||||
|
@ -149,7 +150,6 @@ Insight.prototype.subscribe = function(addresses) {
|
|||
return function(txid) {
|
||||
// verify the address is still subscribed
|
||||
if (!self.subscribed[address]) return;
|
||||
|
||||
log.debug('insight tx event');
|
||||
|
||||
self.emit('tx', {
|
||||
|
|
|
@ -441,9 +441,10 @@ describe('WalletFactory model', function() {
|
|||
should.exist(w.privateKey.toObj());
|
||||
});
|
||||
|
||||
it('should be able to import simple 1-of-1 encrypted legacy testnet wallet', function(done) {
|
||||
it.only('should be able to import simple 1-of-1 encrypted legacy testnet wallet', function(done) {
|
||||
var pp = new Passphrase(config.passphrase);
|
||||
var alternateConfig = JSON.parse(JSON.stringify(config));
|
||||
alternateConfig.Blockchain = FakeBlockchain;
|
||||
alternateConfig.Storage = LocalEncrypted;
|
||||
alternateConfig.storage = {
|
||||
localStorage: mockLocalStorage,
|
||||
|
|
Loading…
Reference in New Issue