Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 566 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 566 Bytes

wrap-assert

An assert wrapper for mini test.

Version: 0.1.25

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