@ephox/dispute

1.0.14 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @ephox/dispute

Weekly Downloads

2,886

Version

1.0.14

License

Apache-2.0

Unpacked Size

84.9 kB

Total Files

67

Last publish

Collaborators

  • ephox
  • tinymce