mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
chore: spacing
This commit is contained in:
parent
2d66709932
commit
8e180664ce
@ -412,7 +412,7 @@ describe('useHydration', () => {
|
|||||||
it('should hydrate value from payload', async () => {
|
it('should hydrate value from payload', async () => {
|
||||||
let val: any
|
let val: any
|
||||||
const nuxtApp = useNuxtApp()
|
const nuxtApp = useNuxtApp()
|
||||||
useHydration('key', () => { }, (fromPayload) => { val = fromPayload })
|
useHydration('key', () => {}, (fromPayload) => { val = fromPayload })
|
||||||
await nuxtApp.hooks.callHook('app:created', nuxtApp.vueApp)
|
await nuxtApp.hooks.callHook('app:created', nuxtApp.vueApp)
|
||||||
expect(val).toMatchInlineSnapshot('undefined')
|
expect(val).toMatchInlineSnapshot('undefined')
|
||||||
|
|
||||||
@ -483,7 +483,7 @@ describe('useId', () => {
|
|||||||
const vals = new Set<string>()
|
const vals = new Set<string>()
|
||||||
for (let index = 0; index < 100; index++) {
|
for (let index = 0; index < 100; index++) {
|
||||||
mount(defineComponent({
|
mount(defineComponent({
|
||||||
setup() {
|
setup () {
|
||||||
const id = useId()
|
const id = useId()
|
||||||
vals.add(id)
|
vals.add(id)
|
||||||
return () => h('div', id)
|
return () => h('div', id)
|
||||||
@ -495,7 +495,7 @@ describe('useId', () => {
|
|||||||
|
|
||||||
it('generates unique ids per-component', () => {
|
it('generates unique ids per-component', () => {
|
||||||
const component = defineComponent({
|
const component = defineComponent({
|
||||||
setup() {
|
setup () {
|
||||||
const id = useId()
|
const id = useId()
|
||||||
return () => h('div', id)
|
return () => h('div', id)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user