Skip to content

Commit 05471ac

Browse files
committed
Update tests
1 parent 3eb5e8f commit 05471ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/plugins/typescript/react-query/tests/__snapshots__/react-query.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ export const useSuspenseTestQuery = <
14391439
14401440
return useSuspenseQuery<TestQuery, TError, TData>(
14411441
{
1442-
queryKey: variables === undefined ? ['testSuspense'] : ['testSuspense', variables],
1442+
queryKey: variables === undefined ? ['test'] : ['test', variables],
14431443
queryFn: fetcher<TestQuery, TestQueryVariables>(dataSource.endpoint, dataSource.fetchParams || {}, TestDocument, variables),
14441444
...options
14451445
}
@@ -1478,7 +1478,7 @@ export const useSuspenseInfiniteTestQuery = <
14781478
(() => {
14791479
const { queryKey: optionsQueryKey, ...restOptions } = options;
14801480
return {
1481-
queryKey: optionsQueryKey ?? variables === undefined ? ['test.infiniteSuspense'] : ['test.infiniteSuspense', variables],
1481+
queryKey: optionsQueryKey ?? variables === undefined ? ['test.infinite'] : ['test.infinite', variables],
14821482
queryFn: (metaData) => fetcher<TestQuery, TestQueryVariables>(dataSource.endpoint, dataSource.fetchParams || {}, TestDocument, {...variables, ...(metaData.pageParam ?? {})})(),
14831483
...restOptions
14841484
}

0 commit comments

Comments
 (0)