test(nuxt3): fix exclude test (#2932)

This commit is contained in:
Daniel Roe 2022-01-26 13:49:06 +00:00 committed by GitHub
parent d0bcc3fc82
commit b449d0bfb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
})
})