Skip to content

Commit 4597c75

Browse files
ci: apply automated fixes
1 parent c6cd29e commit 4597c75

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

packages/svelte-query/tests/createInfiniteQuery/ChangeClient.svelte

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66
export let queryClient: QueryClient
77
88
const queryKey = ['test']
9-
9+
1010
let firstPage = 0
1111
1212
const query = createInfiniteQuery(
1313
{
14-
queryKey: queryKey,
15-
queryFn: ({ pageParam }) => sleep(10).then(() => pageParam),
16-
getNextPageParam: (lastPage) => lastPage + 1,
17-
initialPageParam: firstPage,
14+
queryKey: queryKey,
15+
queryFn: ({ pageParam }) => sleep(10).then(() => pageParam),
16+
getNextPageParam: (lastPage) => lastPage + 1,
17+
initialPageParam: firstPage,
1818
},
1919
queryClient,
2020
)
2121
</script>
2222

2323
<button
24-
on:click={() => {
24+
on:click={() => {
2525
queryClient.setQueryData(queryKey, {
26-
pages: [7, 8],
27-
pageParams: [7, 8],
26+
pages: [7, 8],
27+
pageParams: [7, 8],
2828
})
2929
firstPage = 7
30-
}}
30+
}}
3131
>
32-
setPages
32+
setPages
3333
</button>
3434

3535
<div>Data: {JSON.stringify($query.data)}</div>

packages/svelte-query/tests/createInfiniteQuery/createInfiniteQuery.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import BaseExample from './BaseExample.svelte'
66
import SelectExample from './SelectExample.svelte'
77
import ChangeClient from './ChangeClient.svelte'
88
import type { Writable } from 'svelte/store'
9-
import type { QueryObserverResult } from '@tanstack/query-core'
9+
import type { QueryObserverResult } from '@tanstack/query-core'
1010

1111
describe('createInfiniteQuery', () => {
1212
beforeEach(() => {
@@ -17,7 +17,7 @@ describe('createInfiniteQuery', () => {
1717
vi.useRealTimers()
1818
})
1919

20-
it('should return the correct states for a successful query', async () => {
20+
it('should return the correct states for a successful query', async () => {
2121
const statesStore: Writable<Array<QueryObserverResult>> = writable([])
2222

2323
const rendered = render(BaseExample, {
@@ -131,7 +131,7 @@ describe('createInfiniteQuery', () => {
131131
})
132132
})
133133

134-
it('should be able to set new pages with the query client', async () => {
134+
it('should be able to set new pages with the query client', async () => {
135135
const queryClient = new QueryClient()
136136

137137
const rendered = render(ChangeClient, {
@@ -141,7 +141,7 @@ it('should be able to set new pages with the query client', async () => {
141141
})
142142

143143
await vi.advanceTimersByTimeAsync(11)
144-
expect(
144+
expect(
145145
rendered.getByText('Data: {"pages":[0],"pageParams":[0]}'),
146146
).toBeInTheDocument()
147147

0 commit comments

Comments
 (0)