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

Commit

Permalink
test(nuxt3): fix exclude test (#2932)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 26, 2022
1 parent d0bcc3f commit b449d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt3/test/auto-imports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ describe('auto-imports:transform', () => {
expect(result).to.equal('import { computed } from \'bar\';// import { computed } from "foo"\n;const a = computed(0)')
})

it('should exclude files from transform', async () => {
expect(await transform('const a = foo()')).to.not.include('import { foo } from "excluded"')
it('should exclude files from transform', () => {
expect(transformPlugin.transformInclude.call({ error: null, warn: null }, 'excluded')).to.equal(false)
})
})

Expand Down

0 comments on commit b449d0b

Please sign in to comment.