0.1.25 • Published 3 years ago

wrap-assert v0.1.25

Weekly downloads
13
License
MIT
Repository
-
Last release
3 years ago

wrap-assert

An assert wrapper for mini test.

usage (commonJS)

const assert = require("wrap-assert");

const label = "Equation";
const test = 10 > 8;
assert(test === true, label); // Output: Equation test is pass ✅
assert(!test, label); // Output: Equation test is fail ❌

method

assert(value [, label] [, failMessage])

  • value: boolean
  • label?: string
  • failMessage?: string

NPM Package: Link