-
Notifications
You must be signed in to change notification settings - Fork 574
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): document assertStrictEquals()
equality comparison behavior
#4724
Conversation
assertStrictEquals()
equality comparison behaviorassertStrictEquals()
equality comparison behavior
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4724 +/- ##
=======================================
Coverage 91.44% 91.44%
=======================================
Files 480 480
Lines 37318 37318
Branches 5316 5316
=======================================
Hits 34126 34126
Misses 3136 3136
Partials 56 56 ☔ View full report in Codecov by Sentry. |
assert/assert_strict_equals.ts
Outdated
* This function copies the behavior of Node's | ||
* {@linkcode https://nodejs.org/api/assert.html#assertstrictequalactual-expected-message | assert.strictStrictEqual}, |
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.
We also consider the compatibility to jest, vitest, etc. I don't think we need to mention this information (internal design decision details) here
assert/assert_strict_equals.ts
Outdated
@@ -8,6 +8,12 @@ import { red } from "@std/fmt/colors"; | |||
* Make an assertion that `actual` and `expected` are strictly equal. If |
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.
Make an assertion that actual and expected are strictly equal
I think this part needs to be updated as it's not technically 'strict equality'
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.
LGTM 👍
Closes #4714