1.1.3 • Published 1 year ago

simpltest v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

simpltest

A simple, quick and easy way to test your code.

Installation

npm i simpltest

Quick Start

const st = require("simpltest")

st.createTest(Greeter("Carl"), "Greeter")
    .shouldBe(["Hello Carl!", "Whats up, Carl?"])

function Greeter(name) {
    return [`Hello ${name}!`, `Whats up, ${name}?`][Math.floor(Math.random()*2)]
}

What's new

patch v1.1.3:

  • Fixed bug in readme.

patch v1.1.2:

  • Fixed bug where "all tests passed" is sent multiple times.

v1.1.0:

  • Added JSDOC descriptions.
  • Added abortError for if you don't want an error thrown when not all tests pass.
1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago