chore: run updated prettier
This commit is contained in:
@@ -258,9 +258,8 @@ describe('BaseTransition', () => {
|
||||
) {
|
||||
const toggle = ref(true)
|
||||
const { props, cbs } = mockProps({ mode })
|
||||
const root = mount(
|
||||
props,
|
||||
() => (toggle.value ? trueBranch() : falseBranch())
|
||||
const root = mount(props, () =>
|
||||
toggle.value ? trueBranch() : falseBranch()
|
||||
)
|
||||
|
||||
// without appear: true, enter hooks should not be called on mount
|
||||
@@ -348,9 +347,8 @@ describe('BaseTransition', () => {
|
||||
}: ToggleOptions) {
|
||||
const toggle = ref(false)
|
||||
const { props, cbs } = mockProps()
|
||||
const root = mount(
|
||||
props,
|
||||
() => (toggle.value ? trueBranch() : falseBranch())
|
||||
const root = mount(props, () =>
|
||||
toggle.value ? trueBranch() : falseBranch()
|
||||
)
|
||||
|
||||
// start enter
|
||||
|
||||
@@ -841,10 +841,8 @@ describe('KeepAlive', () => {
|
||||
const instanceRef = ref<any>(null)
|
||||
const App = {
|
||||
render: () => {
|
||||
return h(
|
||||
KeepAlive,
|
||||
{ include: 'Foo' },
|
||||
() => (toggle.value ? h(AsyncComp, { ref: instanceRef }) : null)
|
||||
return h(KeepAlive, { include: 'Foo' }, () =>
|
||||
toggle.value ? h(AsyncComp, { ref: instanceRef }) : null
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,10 @@ describe('renderer: teleport', () => {
|
||||
const root = nodeOps.createElement('div')
|
||||
const children = ref([h('div', 'teleported')])
|
||||
|
||||
render(h(() => h(Teleport, { to: target }, children.value)), root)
|
||||
render(
|
||||
h(() => h(Teleport, { to: target }, children.value)),
|
||||
root
|
||||
)
|
||||
expect(serializeInner(target)).toMatchInlineSnapshot(
|
||||
`"<div>teleported</div>"`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user