Skip to content

Commit

Permalink
refactor(shape-6598): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarCardoso committed Aug 26, 2024
1 parent 5e983c1 commit 5298545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/units/pull-components.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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() })
Expand Down

0 comments on commit 5298545

Please sign in to comment.