Skip to content

Commit

Permalink
fix: ethers test
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarenaldi committed Feb 6, 2025
1 parent 6a574ee commit 643773e
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions packages/client/src/ethers/ethers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,20 @@ const wallet = new Wallet(import.meta.env.PRIVATE_KEY, getDefaultProvider(Networ

describe('Given an integration with ethers.js', () => {
describe('When handling transaction actions', () => {
it('Then it should be possible to chain them with other helpers', async () => {
const result = await loginAsAccountOwner().andThen((sessionClient) =>
post(sessionClient, {
contentUri: uri('https://devnet.irys.xyz/3n3Ujg3jPBHX58MPPqYXBSQtPhTgrcTk4RedJgV1Ejhb'),
})
.andThen(handleOperationWith(wallet))
.andThen(sessionClient.waitForTransaction),
);
it(
'Then it should be possible to chain them with other helpers',
async () => {
const result = await loginAsAccountOwner().andThen((sessionClient) =>
post(sessionClient, {
contentUri: uri('https://devnet.irys.xyz/3n3Ujg3jPBHX58MPPqYXBSQtPhTgrcTk4RedJgV1Ejhb'),
})
.andThen(handleOperationWith(wallet))
.andThen(sessionClient.waitForTransaction),
);

assertOk(result);
});
assertOk(result);
},
{ timeout: 10000 },
);
});
});

0 comments on commit 643773e

Please sign in to comment.