0.0.1 • Published 10 years ago

confirm-that v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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;