Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AnkurVyas-BTC/54069f3af1d5f31afa10a4b12fda3212 to your computer and use it in GitHub Desktop.
Save AnkurVyas-BTC/54069f3af1d5f31afa10a4b12fda3212 to your computer and use it in GitHub Desktop.
Calculator spec js file
//= 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