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.
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