@ephox/wrap-jsverify

Wrapper for Jsc

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@ephox/wrap-jsverify
Minified + gzip package size for @ephox/wrap-jsverify in KB

Readme

Description

This project wraps jsverify in a bolt namespace (ephox.wrap-jsverify.Jsc) and provides a some extra methods.

Installation

wrap-jsverify is available as an npm package. You can install it via the npm package @ephox/wrap-jsverify

Install from npm

npm install @ephox/wrap-jsverify.

Usage

All functionality is provided on the ephox.wrap-jsverify.Jsc module. In addition to the usual jsverify methods, there are two additional methods: syncProperty and asyncProperty.

syncProperty

  • label: the name of the test
  • arbitraries: the list of arbitraries being used
  • f: the function to execute with the arbitraries. Return true at the end for a passing case.
  • options: additional arguments to send through to Jsc like tests and rngState.

asyncProperty

  • label: the name of the test
  • arbitraries: the list of arbitraries being used
  • f: the function to execute with the arbitraries. Return true at the end for a passing case.
  • options: additional arguments to send through to Jsc like tests and rngState.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.