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

Chai's assert. style supported ? #228

Open
cyrilchapon opened this issue Dec 8, 2019 · 2 comments
Open

Chai's assert. style supported ? #228

cyrilchapon opened this issue Dec 8, 2019 · 2 comments

Comments

@cyrilchapon
Copy link

Hey :)

I might be pretty strange, but I always loved assert.isXXX node-like syntax.

I always recommended Chai to my team because well, I know this is a strange opinion, and Chai provides the power to use whatever-syntax-you-like; so they can use fancy expects and I can keep using my plain old assert.s

Though, this particular library (chai-enzyme) doesn't seem to respect that Chai choice.

Is that wanted ? Am I missing something ? 🙂

Thanks

@ljharb
Copy link
Member

ljharb commented Dec 8, 2019

Are you sure? Like specifically have you tried it and found it not to work - my assumption is that any matcher automatically works with either api.

@cyrilchapon
Copy link
Author

Well I confess I only tried assert.blank and assert.isBlank (after correctly binding chai to chaiEnzyme, and validating expect(A).to.be.blank() works)

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

2 participants