diff --git a/core/api/test/integration/app/accounts/get-transactions-for-accounts.spec.ts b/core/api/test/integration/app/accounts/get-transactions-for-accounts.spec.ts index f188b56f872..06f94f23f30 100644 --- a/core/api/test/integration/app/accounts/get-transactions-for-accounts.spec.ts +++ b/core/api/test/integration/app/accounts/get-transactions-for-accounts.spec.ts @@ -76,7 +76,7 @@ describe("getTransactionsForAccountByWalletIds", () => { walletIds: [otherWalletDescriptor.id], rawPaginationArgs: {}, }) - if (txns instanceof Error) throw txns + expect(txns).toBeInstanceOf(InvalidWalletId) // Restore system state