Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prefer-strict-equal.md 710B

123456789101112131415161718192021222324
  1. # Suggest using `toStrictEqual()` (`prefer-strict-equal`)
  2. `toStrictEqual` not only checks that two objects contain the same data but also
  3. that they have the same structure. It is common to expect objects to not only
  4. have identical values but also to have identical keys. A stricter equality will
  5. catch cases where two objects do not have identical keys.
  6. ## Rule details
  7. This rule triggers a warning if `toEqual()` is used to assert equality.
  8. ### Default configuration
  9. The following pattern is considered warning:
  10. ```js
  11. expect({ a: 'a', b: undefined }).toEqual({ a: 'a' }); // true
  12. ```
  13. The following pattern is not warning:
  14. ```js
  15. expect({ a: 'a', b: undefined }).toStrictEqual({ a: 'a' }); // false
  16. ```