API Reference Expect v#3.3.0

View Source

Modules

Expect allows you to write simple, clear assertions in your unit tests.

Matchers are re-usable functions that make complex assertions simple and readable.

You are highly encouraged to implement your own custom matchers. For the application you will build, there will surely be some interesting properties and shapes of data that will be important to verify.

Custom matchers should return this when they receive data they cannot handle

Custom matchers should return this in their happy path. Use the succeeded? field to indicate whether the match was successful or not.

Provides matchers that work with Date, DateTime, and NaiveDateTime.