Skip to content

Commit 33c69ec

Browse files
sukvvonmanudeli
andauthored
test(query-core/intiniteQueryBehavior): remove duplicate 'InfiniteQueryBehavior' in test name (#9331)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
1 parent 35d50cb commit 33c69ec

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('InfiniteQueryBehavior', () => {
1919
vi.useRealTimers()
2020
})
2121

22-
test('InfiniteQueryBehavior should throw an error if the queryFn is not defined', async () => {
22+
test('should throw an error if the queryFn is not defined', async () => {
2323
const key = queryKey()
2424

2525
const observer = new InfiniteQueryObserver(queryClient, {
@@ -48,7 +48,7 @@ describe('InfiniteQueryBehavior', () => {
4848
unsubscribe()
4949
})
5050

51-
test('InfiniteQueryBehavior should apply the maxPages option to limit the number of pages', async () => {
51+
test('should apply the maxPages option to limit the number of pages', async () => {
5252
const key = queryKey()
5353
let abortSignal: AbortSignal | null = null
5454

@@ -197,7 +197,7 @@ describe('InfiniteQueryBehavior', () => {
197197
unsubscribe()
198198
})
199199

200-
test('InfiniteQueryBehavior should support query cancellation', async () => {
200+
test('should support query cancellation', async () => {
201201
const key = queryKey()
202202
let abortSignal: AbortSignal | null = null
203203

@@ -250,7 +250,7 @@ describe('InfiniteQueryBehavior', () => {
250250
unsubscribe()
251251
})
252252

253-
test('InfiniteQueryBehavior should not refetch pages if the query is cancelled', async () => {
253+
test('should not refetch pages if the query is cancelled', async () => {
254254
const key = queryKey()
255255
let abortSignal: AbortSignal | null = null
256256

@@ -334,7 +334,7 @@ describe('InfiniteQueryBehavior', () => {
334334
unsubscribe()
335335
})
336336

337-
test('InfiniteQueryBehavior should not enter an infinite loop when a page errors while retry is on #8046', async () => {
337+
test('should not enter an infinite loop when a page errors while retry is on #8046', async () => {
338338
let errorCount = 0
339339
const key = queryKey()
340340

@@ -436,7 +436,7 @@ describe('InfiniteQueryBehavior', () => {
436436
unsubscribe()
437437
})
438438

439-
test('InfiniteQueryBehavior should not fetch next page when getNextPageParam returns null', async () => {
439+
test('should not fetch next page when getNextPageParam returns null', async () => {
440440
const key = queryKey()
441441

442442
const observer = new InfiniteQueryObserver(queryClient, {
@@ -471,7 +471,7 @@ describe('InfiniteQueryBehavior', () => {
471471
unsubscribe()
472472
})
473473

474-
test('InfiniteQueryBehavior should use persister when provided', async () => {
474+
test('should use persister when provided', async () => {
475475
const key = queryKey()
476476

477477
const persisterSpy = vi.fn().mockImplementation(async (fn) => {

0 commit comments

Comments
 (0)