Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
liady committed Jan 9, 2024
1 parent fc9753d commit 298bc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/src/core/workers/common/project-file-utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ describe('mergeImports', () => {
'/src/fileA.js': importDetails(null, [importAlias('Card')], null),
'/src/fileB.js': importDetails(null, [importAlias('Card', 'Card_2')], null),
},
{ '/src/fileB.js': importDetails(null, [importAlias('Card')], null) },
{ '/src/fileB.js': importDetails(null, [importAlias('Card', 'Card_2')], null) },
)

expect(result.imports).toEqual({
'/src/fileA.js': importDetails(null, [importAlias('Card')], null),
'/src/fileB.js': importDetails(null, [importAlias('Card', 'Card_2')], null),
})

expect(result.duplicateNameMapping).toEqual(new Map([['Card', 'Card_2']]))
expect(result.duplicateNameMapping).toEqual(new Map())
})

it('combines the same thing imported smartly, even if the relative path are written differently, with omitted file extension', () => {
Expand Down

0 comments on commit 298bc14

Please sign in to comment.