Skip to content

Instantly share code, notes, and snippets.

@jmgunn87
Created June 17, 2015 15:46
Show Gist options
  • Save jmgunn87/2e3d8cee4ccc17aaaa84 to your computer and use it in GitHub Desktop.
Save jmgunn87/2e3d8cee4ccc17aaaa84 to your computer and use it in GitHub Desktop.
var assert = require('assert');
module.exports.count = 0;
Object.keys(assert).forEach(function (k) {
module.exports[k] = function () {
assert[k].apply(undefined,
Array.prototype.slice.apply(arguments));
++module.exports.count;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment