Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Last active August 18, 2021 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/e7035c2b29aaaa904d5a80f64f4f9477 to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/e7035c2b29aaaa904d5a80f64f4f9477 to your computer and use it in GitHub Desktop.
const {
add, subtract, divide, multiply,
} = require('.');
assert = require('chai').assert;
describe('Sum', () => {
context('Adding 1 and 1', () => {
it('should return 2', () => {
assert(add(1, 1) === 2);
});
});
});
describe('Subtract', () => {
context('Subtracting 1 from 1', () => {
it('should return 0', () => {
assert(subtract(1, 1) === 0);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment