From afd41eaf86ac6b7466a257aebce883d2d5567edd Mon Sep 17 00:00:00 2001 From: Mustafa Kemal Tuna <12192118+lumosmind@users.noreply.github.com> Date: Tue, 12 Jan 2021 05:22:25 +0300 Subject: [PATCH] each unit parts must be tested For completeness of the test cases we could add tests for the read method. So every method can have individual test cases. --- .../04-object-methods/7-calculator/_js.view/test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/1-js/04-object-basics/04-object-methods/7-calculator/_js.view/test.js b/1-js/04-object-basics/04-object-methods/7-calculator/_js.view/test.js index 1f71eda4..4decb76d 100644 --- a/1-js/04-object-basics/04-object-methods/7-calculator/_js.view/test.js +++ b/1-js/04-object-basics/04-object-methods/7-calculator/_js.view/test.js @@ -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);