07 / 10

List all Assertion Commands

These commands are used to assert that the application is in an expected state:​
  1. 1

    .should(assertion): Asserts that the current subject meets the given condition.​

  2. 2

    .and(assertion): Chains additional assertions to the previous one.​

  3. 3

    expect(value).to...: Uses Chai assertions to assert on a value.​

  4. 4

    assert(condition): Uses Node.js assert module to perform assertions.