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

assert: make partialDeepStrictEqual work with urls and File prototypes #56231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

puskin94
Copy link
Contributor

this PR should close the gap between assert.deepStrictEqual and assert.partialDeepStrictEqual even more.

Found a couple more cases that were not properly working:

  • URLs were not properly compared
  • it was not passing when comparing Object.getPrototypeOf(File.prototype) and Blob.prototype
  • new Float32Array([+0.0]) and new Float32Array([-0.0]) were considered equal, which is not the case

@nodejs-github-bot nodejs-github-bot added assert Issues and PRs related to the assert subsystem. needs-ci PRs that need a full CI run. labels Dec 11, 2024
@BridgeAR BridgeAR added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 11, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 11, 2024
@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.56%. Comparing base (9ec8b9e) to head (6b649a7).
Report is 90 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56231      +/-   ##
==========================================
+ Coverage   88.54%   88.56%   +0.02%     
==========================================
  Files         657      657              
  Lines      189899   190663     +764     
  Branches    36465    36593     +128     
==========================================
+ Hits       168140   168859     +719     
- Misses      14966    14995      +29     
- Partials     6793     6809      +16     
Files with missing lines Coverage Δ
lib/assert.js 99.37% <100.00%> (+<0.01%) ⬆️

... and 74 files with indirect coverage changes

@puskin94 puskin94 force-pushed the partial-deep-strict-equal-missing-cases branch from 40e6cba to 943cb6d Compare December 11, 2024 20:20
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@meixg
Copy link
Member

meixg commented Dec 23, 2024

Sorry I seem to have accidentally clicked it multiple times.

@nodejs-github-bot
Copy link
Collaborator

@puskin94 puskin94 force-pushed the partial-deep-strict-equal-missing-cases branch from 943cb6d to 6b649a7 Compare December 25, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert Issues and PRs related to the assert subsystem. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants