Created
August 19, 2017 22:56
-
-
Save adnanrahic/fc6e26cbf7f95d86e38d4ad172fa1878 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
var expect = require('chai').expect; | |
var addTwoNumbers = require('../addTwoNumbers'); | |
describe('addTwoNumbers()', function () { | |
it('should add two numbers', function () { | |
// 1. ARRANGE | |
var x = 5; | |
var y = 1; | |
var sum1 = x + y; | |
// 2. ACT | |
var sum2 = addTwoNumbers(x, y); | |
// 3. ASSERT | |
expect(sum2).to.be.equal(sum1); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment