@@ -4,7 +4,7 @@ import { usePrefetchWarnings } from "./usePrefetchWarnings"
44import { setupReactQueryTest } from "../hooks/test-utils"
55import { urls , factories , setMockResponse } from "../test-utils"
66import {
7- learningResourcesKeyFactory ,
7+ learningResources ,
88 useLearningResourcesDetail ,
99} from "../hooks/learningResources"
1010
@@ -45,7 +45,7 @@ describe("SSR prefetch warnings", () => {
4545 expect . objectContaining ( {
4646 disabled : false ,
4747 initialStatus : "loading" ,
48- key : learningResourcesKeyFactory . detail ( 1 ) . queryKey ,
48+ key : learningResources . detail ( 1 ) . queryKey ,
4949 observerCount : 1 ,
5050 } ) ,
5151 ] ,
@@ -65,7 +65,7 @@ describe("SSR prefetch warnings", () => {
6565 wrapper,
6666 initialProps : {
6767 queryClient,
68- exemptions : [ learningResourcesKeyFactory . detail ( 1 ) . queryKey ] ,
68+ exemptions : [ learningResources . detail ( 1 ) . queryKey ] ,
6969 } ,
7070 } )
7171
@@ -83,7 +83,7 @@ describe("SSR prefetch warnings", () => {
8383 const { unmount } = renderHook (
8484 ( ) =>
8585 useQuery ( {
86- ...learningResourcesKeyFactory . detail ( 1 ) ,
86+ ...learningResources . detail ( 1 ) ,
8787 initialData : data ,
8888 } ) ,
8989 { wrapper } ,
@@ -105,9 +105,9 @@ describe("SSR prefetch warnings", () => {
105105 [
106106 {
107107 disabled : false ,
108- hash : JSON . stringify ( learningResourcesKeyFactory . detail ( 1 ) . queryKey ) ,
108+ hash : JSON . stringify ( learningResources . detail ( 1 ) . queryKey ) ,
109109 initialStatus : "success" ,
110- key : learningResourcesKeyFactory . detail ( 1 ) . queryKey ,
110+ key : learningResources . detail ( 1 ) . queryKey ,
111111 observerCount : 0 ,
112112 status : "success" ,
113113 } ,
0 commit comments