From 05784d7bf0510225474e1bd9bb37d74e8bda3219 Mon Sep 17 00:00:00 2001 From: "Dimitrios J. Vergados" Date: Tue, 8 Nov 2022 17:52:48 +0200 Subject: [PATCH] Added describe to test_15 --- test/test_15.js | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/test/test_15.js b/test/test_15.js index 3511404..7b3a67b 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 -- GitLab