Merge pull request #2429 from lumosmind/patch-61
each unit parts must be tested
This commit is contained in:
commit
f6d3e300ca
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,11 @@ describe("calculator", function() {
|
||||||
prompt.restore();
|
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() {
|
it("the sum is 5", function() {
|
||||||
assert.equal(calculator.sum(), 5);
|
assert.equal(calculator.sum(), 5);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue