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 324821c commit b82063a
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`;

Check failure on line 83 in packages/smart-wallet/test/supports.js

View workflow job for this annotation

GitHub Actions / lint-rest

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
handler = newHandler;
},
});
Expand Down

0 comments on commit b82063a

Please sign in to comment.