style: lint

This commit is contained in:
Amour1688 2021-10-17 17:46:40 +08:00
parent 35780fd7d4
commit 6f0282f5c0

View File

@ -307,17 +307,17 @@ pragmaTests.forEach(({
const isCustomElementTests = [{
name: 'isCustomElement',
from: '<foo><span>foo</span></foo>'
}]
from: '<foo><span>foo</span></foo>',
}];
isCustomElementTests.forEach(({name, from }) => {
isCustomElementTests.forEach(({ name, from }) => {
test(
name,
async () => {
expect(await transpile(from, { isCustomElement: tag => tag === 'foo' })).toMatchSnapshot(name);
}
)
})
expect(await transpile(from, { isCustomElement: (tag) => tag === 'foo' })).toMatchSnapshot(name);
},
);
});
const fragmentTests = [{
name: '_Fragment already imported',
@ -325,10 +325,10 @@ const fragmentTests = [{
import { Fragment as _Fragment } from 'vue'
const Root1 = () => <>root1</>
const Root2 = () => <_Fragment>root2</_Fragment>
`
`,
}];
fragmentTests.forEach(({ name, from}) => {
fragmentTests.forEach(({ name, from }) => {
test(
name,
async () => {