Skip to content

Instantly share code, notes, and snippets.

@pporche87
Created April 18, 2017 00:21
Show Gist options
  • Save pporche87/f51cec11c605a1776dd9a5060486ce44 to your computer and use it in GitHub Desktop.
Save pporche87/f51cec11c605a1776dd9a5060486ce44 to your computer and use it in GitHub Desktop.
let expect = require ('chai').expect
let add = require ('../src/add')
describe('add()', () => {
it('adds two numbers', () => {
expect(add(4,6)).to.deep.equal(10)
expect(add(-10,5)).to.deep.equal(-5)
expect(add(0,0)).to.deep.equal(0)
expect(add(-2,-3)).to.deep.equal(-5)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment