Merge pull request #1418 from matiaspando/test/addingCoverage

Test added on Wallet.js
This commit is contained in:
Matias Alejo Garcia 2014-09-17 06:30:46 -03:00
commit e2af5ac782
2 changed files with 31 additions and 2 deletions

View file

@ -517,7 +517,6 @@ Wallet.prototype._onData = function(senderId, data, ts) {
preconditions.checkArgument(data.type);
preconditions.checkArgument(ts);
preconditions.checkArgument(_.isNumber(ts));
log.debug('RECV', senderId, data);
if (data.type !== 'walletId' && this.id !== data.walletId) {
@ -526,7 +525,6 @@ Wallet.prototype._onData = function(senderId, data, ts) {
return;
}
switch (data.type) {
// This handler is repeaded on WalletFactory (#join). TODO
case 'walletId':