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/7c1b43f157a70f465ce5 to your computer and use it in GitHub Desktop.
Save TheSavior/7c1b43f157a70f465ce5 to your computer and use it in GitHub Desktop.
Test Expose add and add2
var privateState = require('privatestate');
var utils = require('./utils');
describe('utils#add', function() {
it('should add two numbers', function() {
var add = privateState.getForTesting(utils, 'add');
var actual = add(2, 4);
assert.equal(actual, 6);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment