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

Incorrect implementation of unit test of immutable #919

Open
Losses opened this issue Dec 3, 2022 · 0 comments
Open

Incorrect implementation of unit test of immutable #919

Losses opened this issue Dec 3, 2022 · 0 comments

Comments

@Losses
Copy link

Losses commented Dec 3, 2022

expect(isFrozen(docs[0] && isFrozen(docs[1]))).toBe(true)

The code (probably) should be:

expect(isFrozen(docs[0]) && isFrozen(docs[1])).toBe(true)

but not:

expect(isFrozen(docs[0] && isFrozen(docs[1]))).toBe(true)

Same issue:

expect(isFrozen(committedDocs[0] && isFrozen(committedDocs[1]))).toBe(true)

@Losses Losses changed the title Incorrect implementation of unit test immutable Incorrect implementation of unit test of immutable Dec 3, 2022
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

No branches or pull requests

1 participant