Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfdm committed Dec 31, 2021
1 parent dbc9894 commit 6ceec94
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/scripts/converterFunctions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit 6ceec94

Please sign in to comment.