diff --git a/test/test_15.js b/test/test_15.js index 3511404593fb526f2628d7ae67553635539f2e38..7b3a67b356074021ac0d6bf8a7f714845fdff913 100644 --- a/test/test_15.js +++ b/test/test_15.js @@ -1,26 +1,28 @@ import multiplyNumeric from "../solution_15.js"; import assert from "assert"; -it("should return the correct object", () => { - let initial = { - width: 200, - height: 300, - title: "My menu", - }; - let dbl = { ...initial }; - multiplyNumeric(dbl); - assert.equal(dbl.width, 2 * initial.width); - assert.equal(dbl.height, 2 * initial.height); - assert.equal(dbl.title, initial.title); +describe("\n\nSolution_15", () => { + it("should return the correct object", () => { + let initial = { + width: 200, + height: 300, + title: "My menu", + }; + let dbl = { ...initial }; + multiplyNumeric(dbl); + assert.equal(dbl.width, 2 * initial.width); + assert.equal(dbl.height, 2 * initial.height); + assert.equal(dbl.title, initial.title); - let second = { - a: 100, - b: 200, - c: "adsf", - }; - let dbl2 = { ...second }; - multiplyNumeric(dbl2); - assert.equal(dbl2.a, 2 * second.a); - assert.equal(dbl2.b, 2 * second.b); - assert.equal(dbl2.c, second.c); -}); + let second = { + a: 100, + b: 200, + c: "adsf", + }; + let dbl2 = { ...second }; + multiplyNumeric(dbl2); + assert.equal(dbl2.a, 2 * second.a); + assert.equal(dbl2.b, 2 * second.b); + assert.equal(dbl2.c, second.c); + }); +}); \ No newline at end of file