confirm-that
v0.0.1
Published
A small testing library that simply checks that a function operates correctly
Readme
confirm-that
A lightweight testing framework for Node.js that checks that a statement is correct with a test function.
Example usage - tests/test.js
var confirmThat = require('confirm-that');
var util = require('super-cool-util-class')
confirmThat('reverse function works correctly', function () {
return util.reverse('Ham Sandwich') === 'hciwdnaS maH';
});If true is returned, confirm-that will log its success. Else, it will log its failure and exit with -1;
