From 6ceec942f48cfb972e07b54df28a403a9679ee27 Mon Sep 17 00:00:00 2001 From: Raul Melo Date: Fri, 31 Dec 2021 10:22:34 -0300 Subject: [PATCH] chore: fix test --- src/scripts/converterFunctions.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scripts/converterFunctions.test.js b/src/scripts/converterFunctions.test.js index 4a47ff4..f44a48f 100644 --- a/src/scripts/converterFunctions.test.js +++ b/src/scripts/converterFunctions.test.js @@ -31,7 +31,6 @@ describe('fn: keyToUnitObject', () => { it('should be an object', () => { expect(result.protein).toBeInstanceOf(Object); }); - describe('qty property', () => { it('should has the property "qty"', () => { expect(result.protein).toHaveProperty('qty'); @@ -160,7 +159,7 @@ describe('fn: concatenateEnergy', () => { kcal: 124, kj: 517, }; - const expected = { ...model_1, ...energy }; + const expected = { ...model_1, energy }; delete expected.energy_kcal; delete expected.energy_kj; @@ -172,7 +171,7 @@ describe('fn: concatenateEnergy', () => { kcal: 192, kj: 802, }; - const expected = { ...model_2, ...energy }; + const expected = { ...model_2, energy }; delete expected.energy_kcal; delete expected.energy_kj;