fix conflics

This commit is contained in:
Matias Alejo Garcia 2014-04-24 23:42:59 -03:00
parent e88dc7afb3
commit 46fa0e518c
4 changed files with 7 additions and 7 deletions

6
API.js
View File

@ -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']
]);

View File

@ -23,7 +23,7 @@ FakeStorage.prototype.clear = function() {
delete this['storage'];
}
FakeStorage.prototype.getWalletIds = function() {
FakeStorage.prototype.getWallets = function() {
return [];
};

View File

@ -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();
});

View File

@ -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) {