Skip to content

Commit b55398d

Browse files
committed
fix: KB tests updated
1 parent 3a0e389 commit b55398d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

apps/sim/app/api/knowledge/utils.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,16 @@ vi.mock('@/lib/documents/document-processor', () => ({
106106
processDocuments: vi.fn().mockResolvedValue([
107107
{
108108
chunks: [
109-
{ text: 'alpha', startIndex: 0, endIndex: 4 },
110-
{ text: 'beta', startIndex: 5, endIndex: 8 },
109+
{
110+
text: 'alpha',
111+
tokenCount: 1,
112+
metadata: { startIndex: 0, endIndex: 4 },
113+
},
114+
{
115+
text: 'beta',
116+
tokenCount: 1,
117+
metadata: { startIndex: 5, endIndex: 8 },
118+
},
111119
],
112120
metadata: {
113121
filename: 'dummy',

0 commit comments

Comments
 (0)