Skip to main content

API Reference

Classes

Expect

The Util class provides methods for making assertions in tests, such as comparing two strings for equality with rich error messages.

Static Functions

NameDescription
equalCompares two values for equality.
nilChecks if a value is nil.
notEqualCompares two values for inequality.
notNilChecks if a value is not nil.

equal
bring expect;

inflight expect.equal(actual: any, expected: any);

Compares two values for equality.

actualRequired
  • Type: any

The value to test.


expectedRequired
  • Type: any

The expected value.


nil
bring expect;

inflight expect.nil(actual: any);

Checks if a value is nil.

actualRequired
  • Type: any

The value to test.


notEqual
bring expect;

inflight expect.notEqual(actual: any, expected: any);

Compares two values for inequality.

actualRequired
  • Type: any

The value to test.


expectedRequired
  • Type: any

The expected value.


notNil
bring expect;

inflight expect.notNil(actual: any);

Checks if a value is not nil.

actualRequired
  • Type: any

The value to test.