Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Jul 28, 2022
1 parent 73a6630 commit 0ebae95
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -42,12 +42,16 @@ describe('parse positives', () => {
})

it('with ../ and itself', async () => {
expect(await run('`../dynamicImportVar/${name}.js`')).toMatchSnapshot()
expect(await run('`../dynamicImportVar/${name}.js`')).toMatchInlineSnapshot(
'"__variableDynamicImportRuntimeHelper((import.meta.glob(\\"../dynamicImportVar/*.js\\")), `./${name}.js`)"'
)
})

it('with multi ../ and itself', async () => {
expect(
await run('`../../plugins/dynamicImportVar/${name}.js`')
).toMatchSnapshot()
).toMatchInlineSnapshot(
'"__variableDynamicImportRuntimeHelper((import.meta.glob(\\"../../plugins/dynamicImportVar/*.js\\")), `./${name}.js`)"'
)
})
})

0 comments on commit 0ebae95

Please sign in to comment.