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

fix(jest): ✏️ stick to jest expect convention #462

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 22, 2020

  1. fix(docs): ✏️ stick to jest expect convention

    https://jestjs.io/docs/en/expect#tobevalue
    
    > Use .toBe() to compare primitive values or to check referential identity of object instances.
    
    `.toEqual()` is rather used to compare the content of an object.
    
    actual and expected values were also the other way around; The reference value is supposed to used as a parameter of the `toBe` function rather than the `expect` function.
    cadesalaberry committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    fc0a710 View commit details
    Browse the repository at this point in the history