Created
June 26, 2017 18:43
-
-
Save AnkurVyas-BTC/54069f3af1d5f31afa10a4b12fda3212 to your computer and use it in GitHub Desktop.
Calculator spec js file
This file contains hidden or 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
//= require calculator | |
describe("Calculator", function () { | |
it("test add function", function () { | |
expect(add(1, 2)).to.equal(3); | |
}); | |
it("test subtract function", function () { | |
expect(subtract(10, 4)).to.equal(6); | |
}); | |
it("test multiply function", function () { | |
expect(multiply(5, 3)).to.equal(15); | |
}); | |
it("test divide function", function () { | |
expect(divide(10, 2)).to.equal(5); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment