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

Option: fix should.js .eql() behaviour #1297

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

alxndrsn
Copy link
Contributor

@alxndrsn alxndrsn commented Nov 14, 2024

Making Option.value a private field broke should(Option).eql() behaviour.

See: #1287 / 5ef4c72

Closes #1296

Making Option.value a private field broke should(Option).eql() behaviour.

See: getodk#1287 / 5ef4c72

Closes getodk#1296
lib/util/option.js Outdated Show resolved Hide resolved
lib/util/option.js Outdated Show resolved Hide resolved
test/unit/util/option.js Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

I like these tests!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added more tests - to use the same test cases against chai & node's built-in assert module. I think these will be helpful to avoid breaking anything when/if doing incremental migration away from should.js.

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.

Two different Options .should.not.eql each other
2 participants