-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Refactor negative test cases in refund.test to use Jest assertions #3460
refactor: Refactor negative test cases in refund.test to use Jest assertions #3460
Conversation
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.60 to 0.10.66. - [Release notes](https://github.com/sfackler/rust-openssl/releases) - [Commits](sfackler/rust-openssl@openssl-v0.10.60...openssl-v0.10.66) --- updated-dependencies: - dependency-name: openssl dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Deepak CH <deepak.23BCS10092@ms.sst.scaler.com>
…age pull Primary Changes ---------------- 1. Migrated all the xdai connector tests to besu ledger images that is being pulled from ghcr Fixes hyperledger-cacti#3413 Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com> Signed-off-by: Deepak CH <deepak.23BCS10092@ms.sst.scaler.com>
Signed-off-by: Deepak CH <deepak.23BCS10092@ms.sst.scaler.com>
95f58f9
to
a892f08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution! Please read our contributing guide (https://github.com/hyperledger/cacti/blob/main/CONTRIBUTING.md) and fix the PR, for instance:
- Rebase with main and squash your changes into single commit, make the commit descriptive and aligned with PR title / content.
- Fix the title, use the one peter proposed in related issue (test(plugin-htlc-coordinator-besu): use Jest error assert in refund.test #3457).
- Read the document I've attached and fix any other issues you'll find :)
@@ -141,7 +141,7 @@ | |||
"@types/benchmark": "2.1.5", | |||
"@types/debug": "4.1.12", | |||
"@types/fs-extra": "11.0.4", | |||
"@types/jest": "29.5.3", | |||
"@types/jest": "^29.5.12", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use pinned version of dependencies (i.e. 29.5.12
, without ^
Moved to #3464 |
@Deepakchowdavarapu Please do not open multiple PRs in the future and read the contributing.md document. |
Refactor Negative Test Cases in refund.test.ts to Use Jest Assertions
Replaced try-catch blocks with Jest’s .rejects matcher for error scenarios
in refund.test.ts. Updated test cases to use .toMatch and .toThrow for
error assertions, improving test readability and maintainability.
Test results remain consistent, and all assertions now leverage Jest’s
built-in methods.
BREAKING CHANGE: None
Signed-off-by: Deepakchowdavarapu deepak.23bcs10092@ms.sst.scaler.com