Skip to content

Commit 0a612ec

Browse files
authored
test(angular-query-persist-client): use the '.then()' convention consistently (#11088)
1 parent ff24bf7 commit 0a612ec

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/angular-query-persist-client/src/__tests__/with-persist-query-client.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ describe('withPersistQueryClient', () => {
279279
class Page {
280280
state = injectQuery(() => ({
281281
queryKey: key,
282-
queryFn: async () => {
283-
await sleep(10)
284-
fetched = true
285-
return 'fetched'
286-
},
282+
queryFn: () =>
283+
sleep(10).then(() => {
284+
fetched = true
285+
return 'fetched'
286+
}),
287287
staleTime: Infinity,
288288
}))
289289

0 commit comments

Comments
 (0)