File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import { useRouteAnnouncer } from '#app/composables/route-announcer'
23
23
import { encodeURL , resolveRouteObject } from '#app/composables/router'
24
24
import { useRuntimeHook } from '#app/composables/runtime-hook'
25
25
26
- import { asyncDataDefaults , nuxtDefaultErrorValue } from '#build/nuxt.config.mjs'
26
+ import { asyncDataDefaults , nuxtDefaultErrorValue , pendingWhenIdle } from '#build/nuxt.config.mjs'
27
27
28
28
registerEndpoint ( '/api/test' , defineEventHandler ( event => ( {
29
29
method : event . method ,
@@ -182,7 +182,7 @@ describe('useAsyncData', () => {
182
182
const nonimmediate = await useAsyncData ( ( ) => Promise . resolve ( 'test' ) , { immediate : false } )
183
183
expect ( nonimmediate . data . value ) . toBe ( asyncDataDefaults . value )
184
184
expect ( nonimmediate . status . value ) . toBe ( 'idle' )
185
- expect ( nonimmediate . pending . value ) . toBe ( false )
185
+ expect ( nonimmediate . pending . value ) . toBe ( pendingWhenIdle )
186
186
} )
187
187
188
188
it ( 'should capture errors' , async ( ) => {
329F
div>
You can’t perform that action at this time.
0 commit comments