From fa3acfe13fed94fde14461dbe59b4f9ccf33cc0f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:12:26 -0700 Subject: [PATCH] Sure sonar --- .../ocr-template-editor-zone-list.component.spec.ts | 4 ++-- .../ocr-template-editor.component.html | 9 +++++---- .../manage/ocr-templates/ocr-templates.component.html | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts index 32a21b0c8..875566d96 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts @@ -73,8 +73,8 @@ describe('OcrTemplateEditorZoneListComponent', () => { expect( fixture.nativeElement.querySelectorAll( '[title="Combined with other zones"]' - ).length - ).toBe(2) + ) + ).toHaveLength(2) }) it('warns only for zones without a field and clears the warning when assigned', () => { diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html index 54a645863..788d911b9 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html @@ -190,11 +190,11 @@ of {{ previewPageCount() ?? '?' }} -