Skip to content

Commit

Permalink
test(smart-wallet): fake bridge manager detects handler not set
Browse files Browse the repository at this point in the history
... and handler already set
  • Loading branch information
dckc committed Sep 14, 2023
1 parent 6e6b55c commit 9b9e739
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/smart-wallet/test/supports.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ const makeFakeBridgeManager = () =>
return E(handler).fromBridge(obj);
},
initHandler(newHandler) {
!handler || Fail`Handler already set`;
handler = newHandler;
},
setHandler(newHandler) {
handler || Fail`Handler not set`;
handler = newHandler;
},
});
Expand Down

0 comments on commit 9b9e739

Please sign in to comment.