to be true

  • <boolean> [not] to be true

Asserts that the value is true.

expect(true, 'to be true');

In case of a failing expectation you get the following output:

expect(false, 'to be true');
expected false to be true