Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 392 Bytes

File metadata and controls

18 lines (12 loc) · 392 Bytes

docs » cp.spec.expect


Provides a way of checking values match expected results. At it's core, it uses assert to make the check.

For example:

expect("Hello World"):is("Hello World")
expect("Hello World"):isNot("Hello Mars")
expect(value):isAtLeast(10)
expect.given("the world is a globe"):that(theEarth):isNot("flat")

API Overview

API Documentation