twist

Declarative testing for JavaScript.

Usage no npm install needed!

<script type="module">
  import twist from 'https://cdn.skypack.dev/twist';
</script>

README

Twist

Declarative testing for JavaScript.

import { t, equal } from "twist"

export default [
  t("array.indexOf()", [
    t("returns the index at which a given element is in the array", [
      equal(["A", "B", "C"].indexOf("A"), 0),
    ]),
  ]),
]

Installation

npm i twist

License

MIT