This commit is contained in:
Ilya Kantor 2016-07-20 17:28:12 +03:00
parent 31b5af1580
commit 514340ef9c
181 changed files with 1261 additions and 1101 deletions

View file

@ -0,0 +1,18 @@
describe("multiplyNumeric", function() {
it("multiplies all numeric properties by 2", function() {
var menu = {
width: 200,
height: 300,
title: "My menu"
};
let result = multiplyNumeric(menu);
assert.equal(menu.width, 400);
assert.equal(menu.height, 600);
assert.equal(menu.title, "My menu");
});
it("returns nothing", function() {
assert.isUndefined( multiplyNumeric({}) );
});
});