We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb3b360 commit 09f8ca8Copy full SHA for 09f8ca8
1-js/04-object-basics/06-constructor-new/2-calculator-constructor/_js.view/test.js
@@ -10,6 +10,11 @@ describe("calculator", function() {
10
calculator = new Calculator();
11
calculator.read();
12
});
13
+
14
+ it("the read method asks for two values using prompt and remembers them in object properties", function() {
15
+ assert.equal(calculator.a, 2);
16
+ assert.equal(calculator.b, 3);
17
+ });
18
19
it("when 2 and 3 are entered, the sum is 5", function() {
20
assert.equal(calculator.sum(), 5);
0 commit comments