Fix: fix doc link input (#9533)

This commit is contained in:
shamoon
2025-03-31 19:35:05 -07:00
committed by GitHub
parent 32a7f9cd5a
commit eb481ac1c0
4 changed files with 17 additions and 9 deletions

View File

@@ -74,6 +74,11 @@ describe('DocumentLinkComponent', () => {
expect(component.selectedDocuments).toEqual([documents[1], documents[0]])
})
it('should retrieve document IDs from selected documents', () => {
component.selectedDocuments = documents
expect(component.selectedDocumentIDs).toEqual([1, 12, 16, 23])
})
it('should search API on select text input', () => {
const listSpy = jest.spyOn(documentService, 'listFiltered')
listSpy.mockImplementation(