Skip to content

Commit b7cbcca

Browse files
committed
fix tests
1 parent 24382d6 commit b7cbcca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/database/server/models/__tests__/chunk.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -495,13 +495,13 @@ content in Table html is below:
495495
});
496496

497497
// 测试结果限制
498-
it('should limit results to 5 items', async () => {
498+
it('should limit results to 15 items', async () => {
499499
const fileId = '1';
500-
// Create 6 chunks
500+
// Create 24 chunks
501501
const chunkResult = await serverDB
502502
.insert(chunks)
503503
.values(
504-
Array(6)
504+
Array(24)
505505
.fill(0)
506506
.map((_, i) => ({ text: `Test Chunk ${i}`, userId })),
507507
)
@@ -528,7 +528,7 @@ content in Table html is below:
528528
query: 'test',
529529
});
530530

531-
expect(result).toHaveLength(5);
531+
expect(result).toHaveLength(15);
532532
});
533533
});
534534
});

0 commit comments

Comments
 (0)