Skip to content

Assertions

Jestspectation offers an assert_eq function that is similar to assert x == y, but gives detailed diffs.

Asserts that lhs is equal to rhs

Args

  • lhs: left-hand side of expression
  • rhs: right-hand side of expression

Raises

  • AssertionError: when lhs != rhs