Skip to content

Commit 19c4dfd

Browse files
committed
test: count call
1 parent 0665635 commit 19c4dfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/data-loaders/defineColadaLoader.spec.ts

+2
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,11 @@ describe(
372372
await router.push('/items/0')
373373
const queryCache = useQueryCache(pinia)
374374

375+
expect(nestedQuery).toHaveBeenCalledTimes(1)
375376
await expect(
376377
queryCache.invalidateQueries({ key: ['list'] })
377378
).resolves.toBeDefined()
379+
expect(nestedQuery).toHaveBeenCalledTimes(2)
378380
})
379381
}
380382
)

0 commit comments

Comments
 (0)