Skip to content

Commit

Permalink
refactor(test): IcaAccountKit returns a Port remotable
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Aug 21, 2024
1 parent 55b79ec commit 01094e3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions packages/orchestration/test/cosmos-interchain-service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,17 @@ test.serial('makeAccount returns an IcaAccountKit', async t => {
/"version":"ics27-1"(.*)"encoding":"proto3"/,
'remote address contains version and encoding in version string',
);
t.true(
(
['addListener', 'removeListener', 'connect', 'revoke'] as (keyof Port)[]
).every(method => getMethodNames(port).includes(method)),
t.deepEqual(
getMethodNames(port),
[
'__getInterfaceGuard__',
'__getMethodNames__',
'addListener',
'connect',
'getLocalAddress',
'removeListener',
'revoke',
],
'IcaAccountKit returns a Port remotable',
);

Expand Down

0 comments on commit 01094e3

Please sign in to comment.