Skip to content

This package will take wrap the assert console for mini test

Notifications You must be signed in to change notification settings

ReydVires/wrap-assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This package will take wrap the assert console for mini test

Resources

Stars

Watchers

Forks

Packages

No packages published