1.0.14 • Published 8 months ago

@ephox/dispute v1.0.14

Weekly downloads
393
License
Apache-2.0
Repository
-
Last release
8 months ago

Dispute

This library contains the following basic type classes:

  • Eq - equality
  • Show - printing values as literals for debugging
  • Pprint - pretty-printing values
  • Testable - Eq and Pprint

Testable is useful for test assertion libraries. You can use Dispute functionality test that two values are equal, and if they're not, pretty-print the expected and actual.

Dispute provides instances for common TypeScript types, as well as for any types, using type inspection. It is also extendable to types which can't be compared correctly with type inspection - e.g. church-encoded types.

Dispute is used in the Bedrock test runner.