Merge pull request #1418 from matiaspando/test/addingCoverage
Test added on Wallet.js
This commit is contained in:
commit
e2af5ac782
2 changed files with 31 additions and 2 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue