From 5298545e2f7eb4e30cbc3c7723a0ffd93924cd7d Mon Sep 17 00:00:00 2001 From: ademarCardoso Date: Mon, 26 Aug 2024 15:27:38 -0300 Subject: [PATCH] refactor(shape-6598): fix tests --- tests/units/pull-components.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/units/pull-components.spec.js b/tests/units/pull-components.spec.js index b3368c7..4320ad0 100644 --- a/tests/units/pull-components.spec.js +++ b/tests/units/pull-components.spec.js @@ -51,7 +51,7 @@ describe('testing pullComponents', () => { expect(fs.writeFileSync.mock.calls.length).toBe(1) expect(path).toBe(`./${expectFileName}`) - expect(JSON.parse(data)).toEqual({ components: [FAKE_COMPONENTS()[0]] }) + expect(JSON.parse(data)).toEqual({ components: [FAKE_COMPONENTS()[0]], component_groups: [] }) }) it('pull components should be call fs.writeFileSync correctly and generate a component and preset files', async () => { @@ -83,7 +83,7 @@ describe('testing pullComponents', () => { expect(fs.writeFileSync.mock.calls.length).toBe(2) expect(compPath).toBe(`./${expectComponentFileName}`) - expect(JSON.parse(compData)).toEqual({ components: [FAKE_COMPONENTS()[0]] }) + expect(JSON.parse(compData)).toEqual({ components: [FAKE_COMPONENTS()[0]], component_groups: [] }) expect(presetPath).toBe(`./${expectPresetFileName}`) expect(JSON.parse(presetData)).toEqual({ presets: FAKE_PRESET() })