Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 8, 2024
1 parent e245fb7 commit 2b4c2ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime-core/__tests__/components/KeepAlive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,22 +894,22 @@ describe('KeepAlive', () => {
childCount++
})
return () => 'child'
}
},
})
const Parent = defineComponent({
setup() {
onActivated(() => {
parentCount++
})
return () => h(Child)
}
},
})
const AsyncComp = defineAsyncComponent(() => Promise.resolve(Parent))

const App = {
render: () => {
return h(KeepAlive, null, () => (toggle.value ? h(AsyncComp) : null))
}
},
}

render(h(App), root)
Expand Down

0 comments on commit 2b4c2ae

Please sign in to comment.