hyperledger-cacti / cacti

Hyperledger Cacti is a new approach to the blockchain interoperability problem
https://wiki.hyperledger.org/display/cactus
Apache License 2.0
344 stars 286 forks source link

test(aries): refactor jest test negative test cases #3473

Closed ashnashahgrover closed 3 months ago

ashnashahgrover commented 3 months ago

Refactor all the negative test case exception assertions for cactus-plugin-ledger-connector-aries so that they do not use try-catch blocks but instead declare the requirements through Jest's (and jest-extended's) own API.

The parent issue with a much more detailed explanation of what's needed and code examples on how to do it: Parent Issue: https://github.com/hyperledger/cacti/issues/3455

Acceptance Criteria Test passes the same as before Negative test case assertions have been migrated the way it is explained in the parent issue.