@@ -13,7 +13,6 @@ import {
1313 internalKnowledgeProvenanceUserId ,
1414 resolveInternalKnowledgeBillingAttribution ,
1515 toInternalKnowledgeConnector ,
16- toInternalKnowledgeDocument ,
1716} from '@/lib/knowledge/api/internal-route'
1817import { resolveKnowledgeAttributedUserId } from '@/lib/knowledge/application/billing'
1918
@@ -134,30 +133,6 @@ describe('internal Knowledge execution attribution', () => {
134133 } )
135134} )
136135
137- describe ( 'toInternalKnowledgeDocument' , ( ) => {
138- it ( 'presents when a deferred retry is due, so the Retry action can match the API' , ( ) => {
139- const deferredUntil = new Date ( '2026-09-01T12:00:00.000Z' )
140- const presented = toInternalKnowledgeDocument ( {
141- id : 'doc-1' ,
142- knowledgeBaseId : 'kb-1' ,
143- filename : 'a.txt' ,
144- fileUrl : 'https://example.com/a.txt' ,
145- fileSize : 1 ,
146- mimeType : 'text/plain' ,
147- chunkCount : 0 ,
148- tokenCount : 0 ,
149- characterCount : 0 ,
150- processingStatus : 'pending' ,
151- enabled : true ,
152- uploadedAt : new Date ( '2026-08-01T00:00:00.000Z' ) ,
153- processingQueuedAt : new Date ( '2026-08-01T00:00:00.000Z' ) ,
154- processingDeferredUntil : deferredUntil ,
155- } )
156- expect ( presented . processingDeferredUntil ) . toBe ( deferredUntil . toISOString ( ) )
157- expect ( presented . processingQueuedAt ) . toBe ( '2026-08-01T00:00:00.000Z' )
158- } )
159- } )
160-
161136describe ( 'toInternalKnowledgeConnector' , ( ) => {
162137 const row = {
163138 id : 'connector-1' ,
0 commit comments