Skip to content

inventables/check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check

“You better check yo self before you wreck yo self.” – Ice Cube


check is a JavaScript assertion library with a very small API and an expectation syntax inspired by the way a developer would investigate the behavior of an app using the browser’s console or the node REPL.

Example usage

var point = {
  x: 10,
  y: Math.exp(Math.PI) - Math.PI
};

check(point, function(point) {
  point.x === 10;
  point.y === 20;
});

Result

Error: Expected `point.y === 20`. Got `point.y`: 19.99909997918948.

About

Ergonomic assertion library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published