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 SchemaType.clone() #8542

Merged
merged 4 commits into from
Jan 28, 2020
Merged

Fix SchemaType.clone() #8542

merged 4 commits into from
Jan 28, 2020

Conversation

samgladstone
Copy link
Contributor

I noticed that SchemaType.clone() was not copying values where updates had been made after instantiation.

I figured that testing using assert.deepStrictEqual made the most sense here, but perhaps it's overkill and the if (x !== undefined) are unecessary? I'll happily adjust if you have a preference.

Also, I thought the rename schema.type.test.js → test/schematype.test.js made sense as it seems to be testing shared functionality, again will adjust if you prefer the old style.

@samgladstone
Copy link
Contributor Author

Currently linting/looking at the fail

@samgladstone
Copy link
Contributor Author

There we go 😄

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@vkarpov15 vkarpov15 added this to the 5.8.11 milestone Jan 28, 2020
@vkarpov15 vkarpov15 merged commit 4a7b391 into Automattic:master Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants