Skip to content
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

docs(assert): improve assertObjectMatch docs #5296

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jul 4, 2024

This PR improves the docs of assertObjectMatch.

@github-actions github-actions bot added the assert label Jul 4, 2024
@@ -3,7 +3,7 @@
import { assertEquals } from "./equals.ts";

/**
* Make an assertion that `actual` object is a subset of `expected` object,
* Make an assertion that `actual` object is a superset of `expected` object,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actual needs to include all of expected fields. I think actual is called superset in this case.

Copy link
Contributor

@iuioiua iuioiua Jul 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be a little easier to understand if we say that expected is a subset of actual. WDYT?

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.81%. Comparing base (99764a7) to head (929e517).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5296   +/-   ##
=======================================
  Coverage   95.80%   95.81%           
=======================================
  Files         457      458    +1     
  Lines       37955    37890   -65     
  Branches     5572     5567    -5     
=======================================
- Hits        36364    36304   -60     
+ Misses       1551     1546    -5     
  Partials       40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kt3k kt3k merged commit ee46006 into denoland:main Jul 4, 2024
13 checks passed
@kt3k kt3k deleted the docs-improve-assert-object-match-docs branch July 4, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants