fix(Assertion): Improve toHaveProperty alias by forwarding arguments correctly for intuitive object property assertions

This commit is contained in:
2025-04-30 19:37:19 +00:00
parent 62cf7f5db5
commit ff795f6fe0
9 changed files with 76 additions and 2 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2025-04-30 - 2.4.1 - fix(Assertion)
Improve toHaveProperty alias by forwarding arguments correctly for intuitive object property assertions
- Updated the toHaveProperty method in the Assertion class to check the number of arguments and call the appropriate object matcher
- Added several scratch alias files to demonstrate and test the alias usage
- Enhanced test cases in test/propertypath to cover alias behavior
## 2025-04-30 - 2.4.0 - feat(object)
add toHaveOwnProperty method and improve property-path matching in object assertions