Created
April 18, 2017 00:22
-
-
Save pporche87/e52928ffe0cd27ba9b035276d38631fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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