Skip to content

Commit

Permalink
chore(test): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler authored and dtfiedler committed Jan 15, 2025
1 parent 6ca9e10 commit bcd0970
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
9 changes: 5 additions & 4 deletions tests/e2e/cjs/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const signers = [
createAoSigner(new ArweaveSigner(testWallet)),
];
const processId = process.env.ARIO_PROCESS_ID || arioDevnetProcessId;
const arweave = Arweave.init({});
describe('e2e cjs tests', async () => {
describe('ARIO client works ', async () => {
it('should be able to instantiate ARIO with default process', async () => {
Expand All @@ -52,20 +53,20 @@ describe('e2e cjs tests', async () => {
assert(ario instanceof ARIOReadable);
});

it('should be able to instantiate ARIO with a process and arweave', async () => {
it.skip('should be able to instantiate ARIO with a process and arweave', async () => {
const ario = ARIO.init({
process: new AOProcess({
processId,
}),
arweave: Arweave.init({}),
arweave,
});
assert(ario instanceof ARIOReadable);
});

it('should be able to instantiate ARIO with a processId and arweave', async () => {
it('should be able to instantiate ARIO with a process id and arweave', async () => {
const ario = ARIO.init({
processId,
arweave: Arweave.init({}),
arweave,
});
assert(ario instanceof ARIOReadable);
});
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
ao-cu:
image: ghcr.io/permaweb/ao-cu:latest
restart: on-failure
volumes:
- ${CU_WALLET_FILE:-./test-wallet.json}:/usr/app/test-wallet.json
ports:
Expand Down
13 changes: 11 additions & 2 deletions tests/e2e/esm/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const signers = [
const aoClient = connect({
CU_URL: 'http://localhost:6363',
});
const arweave = Arweave.init({});

const processId = process.env.ARIO_PROCESS_ID || arioDevnetProcessId;
const ario = ARIO.init({
Expand Down Expand Up @@ -85,9 +86,17 @@ describe('e2e esm tests', async () => {
process: new AOProcess({
processId,
}),
arweave: Arweave.init({}),
arweave,
});
assert(ario instanceof ARIOWriteable);
assert(ario instanceof ARIOReadable);
});

it('should be able to instantiate ARIO with a proces id and arweave', async () => {
const ario = ARIO.init({
processId,
arweave,
});
assert(ario instanceof ARIOReadable);
});

it('should be able to get the process information', async () => {
Expand Down

0 comments on commit bcd0970

Please sign in to comment.