mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-01-10 08:19:10 +08:00
style: lint
This commit is contained in:
parent
35780fd7d4
commit
6f0282f5c0
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user