Skip to content

Instantly share code, notes, and snippets.

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