Skip to content

Commit

Permalink
fix(tests): instantiate new ant to connect in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus committed Mar 22, 2024
1 parent b4a7bc3 commit 9869415
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/ant.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ describe('ANT contract apis', () => {
it('should connect and return a valid instance', async () => {
const jwk = await arweave.wallets.generate();
const signer = new ArweaveSigner(jwk);
expect(ant.connect(signer)).toBeDefined();
expect(ant).toBeInstanceOf(ANT);
const connectAnt = new ANT({
contract: new RemoteContract<ANTState>({
cacheUrl: localCacheUrl,
contractTxId,
}),
});
expect(connectAnt.connect(signer)).toBeDefined();
expect(connectAnt).toBeInstanceOf(ANT);
});

it.each([
Expand Down

0 comments on commit 9869415

Please sign in to comment.