We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The chai-should codemod produces a bad result when chaining property with a/an. See this diff produced:
property
a
an
expect( state ) - .to.have.property( 'example.wordpress.com' ) - .to.be.a( 'object' ); + .expect( typeof state ).toBe( 'object' );
See failing tests with proposed codemod result in #92
Detected in Automattic/wp-calypso#19631 by @gziolo
The text was updated successfully, but these errors were encountered:
@sirreal thanks for reporting this! And thanks for the failing test.
Sorry, something went wrong.
You bet! Thanks for your work on the codemods 😀
Chaining is currently unsupported in the chai-should... But it should be possible to add, like we did in the expect codemod. : )
expect
No branches or pull requests
The chai-should codemod produces a bad result when chaining
property
witha
/an
. See this diff produced:See failing tests with proposed codemod result in #92
Detected in Automattic/wp-calypso#19631 by @gziolo
The text was updated successfully, but these errors were encountered: