Skip to content

Instantly share code, notes, and snippets.

@TheSavior
Last active October 13, 2015 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheSavior/fb9dce5a3b4173b6eeaa to your computer and use it in GitHub Desktop.
Save TheSavior/fb9dce5a3b4173b6eeaa to your computer and use it in GitHub Desktop.
CommonJS Testing Private Expose
var privateState = require('privatestate');
// ... code
privateState.registerTestingFunctions(Utils, ['add']);
module.exports = Utils;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment