Created
February 11, 2020 20:01
-
-
Save rafinskipg/9aacd7302f93f64d1274f5d5e508045a 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
describe('add method', () => { | |
it('should return a SUM when receiving two different numbers', () => { | |
for (var i = 0; i < 100; i++) { | |
const valueA = Math.round(Math.random() * 100) | |
const valueB = Math.round(Math.random() * 100) | |
const sum = valueA + valueB | |
expect(calculator.add(valueA, valueB)).toEqual(sum) | |
} | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment