rspec/rules/S3415/javascript/message.adoc

10 lines
271 B
Plaintext
Raw Normal View History

=== Message
If a Chai function gets actual and expected values as arguments:
* Swap these 2 arguments so they are in the correct order: actual value, expected value.
If expect(actual).someMethod(expected) is used:
* Swap this argument with the one given to "expect".