mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 17:49:16 +08:00
style: lint
This commit is contained in:
parent
35780fd7d4
commit
6f0282f5c0
@ -307,17 +307,17 @@ pragmaTests.forEach(({
|
|||||||
|
|
||||||
const isCustomElementTests = [{
|
const isCustomElementTests = [{
|
||||||
name: 'isCustomElement',
|
name: 'isCustomElement',
|
||||||
from: '<foo><span>foo</span></foo>'
|
from: '<foo><span>foo</span></foo>',
|
||||||
}]
|
}];
|
||||||
|
|
||||||
isCustomElementTests.forEach(({name, from }) => {
|
isCustomElementTests.forEach(({ name, from }) => {
|
||||||
test(
|
test(
|
||||||
name,
|
name,
|
||||||
async () => {
|
async () => {
|
||||||
expect(await transpile(from, { isCustomElement: tag => tag === 'foo' })).toMatchSnapshot(name);
|
expect(await transpile(from, { isCustomElement: (tag) => tag === 'foo' })).toMatchSnapshot(name);
|
||||||
}
|
},
|
||||||
)
|
);
|
||||||
})
|
});
|
||||||
|
|
||||||
const fragmentTests = [{
|
const fragmentTests = [{
|
||||||
name: '_Fragment already imported',
|
name: '_Fragment already imported',
|
||||||
@ -325,10 +325,10 @@ const fragmentTests = [{
|
|||||||
import { Fragment as _Fragment } from 'vue'
|
import { Fragment as _Fragment } from 'vue'
|
||||||
const Root1 = () => <>root1</>
|
const Root1 = () => <>root1</>
|
||||||
const Root2 = () => <_Fragment>root2</_Fragment>
|
const Root2 = () => <_Fragment>root2</_Fragment>
|
||||||
`
|
`,
|
||||||
}];
|
}];
|
||||||
|
|
||||||
fragmentTests.forEach(({ name, from}) => {
|
fragmentTests.forEach(({ name, from }) => {
|
||||||
test(
|
test(
|
||||||
name,
|
name,
|
||||||
async () => {
|
async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user