mirror of https://github.com/BTCPrivate/copay.git
fix conflics
This commit is contained in:
parent
e88dc7afb3
commit
46fa0e518c
6
API.js
6
API.js
|
@ -169,13 +169,13 @@ API.prototype.getCommands = decorate('getCommands', [
|
|||
['callback', 'function']
|
||||
]);
|
||||
|
||||
API.prototype._cmd_getWalletIds = function(callback) {
|
||||
API.prototype._cmd_getWallets = function(callback) {
|
||||
var self = this;
|
||||
|
||||
return callback(null, self.walletFactory.getWalletIds());
|
||||
return callback(null, self.walletFactory.getWallets());
|
||||
};
|
||||
|
||||
API.prototype.getWalletIds = decorate('getWalletIds', [
|
||||
API.prototype.getWallets = decorate('getWallets', [
|
||||
['callback', 'function']
|
||||
]);
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ FakeStorage.prototype.clear = function() {
|
|||
delete this['storage'];
|
||||
}
|
||||
|
||||
FakeStorage.prototype.getWalletIds = function() {
|
||||
FakeStorage.prototype.getWallets = function() {
|
||||
return [];
|
||||
};
|
||||
|
||||
|
|
|
@ -110,10 +110,10 @@ describe('API', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('#getWalletIds', function() {
|
||||
describe('#getWallets', function() {
|
||||
it('should get the wallet ids', function(done) {
|
||||
var api = new API({Storage: Storage});
|
||||
api.getWalletIds(function(err, result) {
|
||||
api.getWallets(function(err, result) {
|
||||
result.length.should.be.greaterThan(-1);
|
||||
done();
|
||||
});
|
||||
|
|
|
@ -5,7 +5,7 @@ var should = chai.should();
|
|||
var copay = copay || require('../copay');
|
||||
var Wallet = require('../js/models/core/Wallet');
|
||||
var Storage= require('./mocks/FakeStorage');
|
||||
var Network= copay.WebRTC;
|
||||
var Network= require('./mocks/FakeNetwork');
|
||||
var Blockchain= copay.Insight;
|
||||
|
||||
var addCopayers = function (w) {
|
||||
|
|
Loading…
Reference in New Issue