Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
test: merge #app imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 10, 2022
1 parent 52fb725 commit 48b5fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/test/auto-imports.test.ts
Expand Up @@ -66,7 +66,7 @@ describe('imports:nuxt', () => {
continue
}
it(`should register ${name} globally`, () => {
expect(defaultPresets.find(a => a.from === '#app')!.imports).to.include(name)
expect(defaultPresets.flatMap(a => a.from === '#app' ? a.imports : [])).to.include(name)
})
}
} catch (e) {
Expand Down

0 comments on commit 48b5fc1

Please sign in to comment.