Skip to content

Commit 7c61c28

Browse files
fixed outdated test case for invalid transaction id API response
1 parent 53302e4 commit 7c61c28

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

sdk/tests/network-client.test.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -370,17 +370,7 @@ describe("NodeConnection", () => {
370370

371371
it("should throw for a malformed tx ID", async () => {
372372
const connection = new AleoNetworkClient(host);
373-
try {
374-
await connection.waitForTransactionConfirmation(invalidTx);
375-
throw new Error(
376-
"Expected waitForTransactionConfirmation to throw",
377-
);
378-
} catch (err: any) {
379-
console.log(err.message);
380-
if (connection.network === "mainnet") {
381-
expect(err.message).to.include("Malformed transaction ID");
382-
}
383-
}
373+
expectThrows(() => connection.waitForTransactionConfirmation(invalidTx));
384374
});
385375
});
386376

0 commit comments

Comments
 (0)