Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amour1688 committed Oct 17, 2021
1 parent 35780fd commit 6f0282f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/babel-plugin-jsx/test/snapshot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,28 +307,28 @@ 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',
from: `
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 () => {
Expand Down

0 comments on commit 6f0282f

Please sign in to comment.