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

fix: Preserve key properties when using spread to copy BIDSFile objects in browser environments #1928

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

nellh
Copy link
Member

@nellh nellh commented Apr 11, 2024

Fix for #1918

These properties defined by getters cannot be copied with the spread operator. Materializing these properties instead matches the Deno behavior and should avoid future differences between the two implementations.

@nellh nellh added the schema label Apr 11, 2024
Copy link

codecov bot commented Apr 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.77%. Comparing base (c299f98) to head (f1b60f3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1928      +/-   ##
==========================================
+ Coverage   83.57%   88.77%   +5.20%     
==========================================
  Files          92       39      -53     
  Lines        3890     2370    -1520     
  Branches     1271      272     -999     
==========================================
- Hits         3251     2104    -1147     
+ Misses        541      260     -281     
+ Partials       98        6      -92     

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

@rwblair rwblair merged commit bc15afc into bids-standard:master Apr 18, 2024
27 of 30 checks passed
rwblair added a commit to rwblair/legacy-validator that referenced this pull request Apr 19, 2024
fix: Preserve key properties when using spread to copy BIDSFile objects in browser environments
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