Fix: some random frontend fixes and coverage

This commit is contained in:
shamoon
2024-12-04 16:31:16 -08:00
parent df2c139721
commit 0c883d064e
7 changed files with 49 additions and 18 deletions

View File

@@ -120,4 +120,12 @@ describe('DocumentCardLargeComponent', () => {
expect(fixture.nativeElement.textContent).toContain('bananas')
expect(component.searchNoteHighlights).toContain('<span>bananas</span>')
})
it('should try to close the preview on mouse leave', () => {
component.popupPreview = {
close: jest.fn(),
} as any
component.mouseLeaveCard()
expect(component.popupPreview.close).toHaveBeenCalled()
})
})