Skip to content

Instantly share code, notes, and snippets.

@matthewpalmer
Last active December 15, 2015 07:59
Show Gist options
  • Save matthewpalmer/5227331 to your computer and use it in GitHub Desktop.
Save matthewpalmer/5227331 to your computer and use it in GitHub Desktop.
var assert = require('assert');
var expect = require('expect.js');
var add = require('../add');
describe('add',function() {
it('should expose a function', function() {
expect(add).to.be.a('function');
});
it ('should add the values', function() {
expect(add(1,3)).to.equal(4);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment