Merge pull request #2429 from lumosmind/patch-61

each unit parts must be tested
This commit is contained in:
Ilya Kantor 2021-01-13 19:57:43 +03:00 committed by GitHub
commit f6d3e300ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,11 @@ describe("calculator", function() {
afterEach(function() {
prompt.restore();
});
it('the read get two values and saves them as object properties', function () {
assert.equal(calculator.a, 2);
assert.equal(calculator.b, 3);
});
it("the sum is 5", function() {
assert.equal(calculator.sum(), 5);