0.0.1 • Published 10 years ago
confirm-that v0.0.1
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;
0.0.1
10 years ago