Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('InfiniteQueryObserver', () => {
vi.useRealTimers()
})

test('InfiniteQueryObserver should be able to fetch an infinite query with selector', async () => {
test('should be able to fetch an infinite query with selector', async () => {
const key = queryKey()
const observer = new InfiniteQueryObserver(queryClient, {
queryKey: key,
Expand All @@ -43,7 +43,7 @@ describe('InfiniteQueryObserver', () => {
})
})

test('InfiniteQueryObserver should pass the meta option to the queryFn', async () => {
test('should pass the meta option to the queryFn', async () => {
const meta = {
it: 'works',
}
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('InfiniteQueryObserver', () => {
expect(queryFn).toBeCalledWith(expect.objectContaining({ meta }))
})

test('getNextPagParam and getPreviousPageParam should receive current pageParams', async () => {
test('should make getNextPageParam and getPreviousPageParam receive current pageParams', async () => {
const key = queryKey()
let single: Array<string> = []
let all: Array<string> = []
Expand Down Expand Up @@ -207,7 +207,7 @@ describe('InfiniteQueryObserver', () => {
expect(observer.getCurrentResult().hasNextPage).toBe(false)
})

test('getOptimisticResult should set infinite query behavior and return initial state', () => {
test('should set infinite query behavior via getOptimisticResult and return the initial state', () => {
const key = queryKey()
const observer = new InfiniteQueryObserver(queryClient, {
queryKey: key,
Expand Down
Loading