Last active
August 18, 2021 17:58
-
-
Save rahulbanerjee26/e7035c2b29aaaa904d5a80f64f4f9477 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
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