Test added

This commit is contained in:
Matias Pando 2014-09-16 15:58:23 -03:00
commit a316d04474
2 changed files with 31 additions and 2 deletions

View file

@ -520,7 +520,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) {
@ -529,7 +528,6 @@ Wallet.prototype._onData = function(senderId, data, ts) {
return;
}
switch (data.type) {
// This handler is repeaded on WalletFactory (#join). TODO
case 'walletId':