Skip to content

Commit f812bf4

Browse files
authored
test(*): remove unnecessary async (#9025)
1 parent 8f8e6d0 commit f812bf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/query-core/src/__tests__/hydration.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe('dehydration and rehydration', () => {
133133
hydrationClient.clear()
134134
})
135135

136-
test('should not dehydrate queries if dehydrateQueries is set to false', async () => {
136+
test('should not dehydrate queries if dehydrateQueries is set to false', () => {
137137
const queryCache = new QueryCache()
138138
const queryClient = createQueryClient({ queryCache })
139139
vi.waitFor(() =>

packages/react-query-persist-client/src/__tests__/PersistQueryClientProvider.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const createMockPersister = (): Persister => {
1919
let storedState: PersistedClient | undefined
2020

2121
return {
22-
async persistClient(persistClient: PersistedClient) {
22+
persistClient(persistClient: PersistedClient) {
2323
storedState = persistClient
2424
},
2525
async restoreClient() {
@@ -706,7 +706,7 @@ describe('PersistQueryClientProvider', () => {
706706
let storedState: PersistedClient | undefined
707707

708708
return {
709-
async persistClient(persistClient) {
709+
persistClient(persistClient) {
710710
storedState = persistClient
711711
},
712712
async restoreClient() {

0 commit comments

Comments
 (0)