From 629a247cc4bc776cbc9d1674ad602e629c18f33d Mon Sep 17 00:00:00 2001 From: Vivin Krishna <123377523+vivinkrishna-ni@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:08:44 +0530 Subject: [PATCH] Fix lint --- .../testing/rich-text-editor.pageobject.ts | 7 +++---- .../editor/tests/rich-text-editor.spec.ts | 21 ++++++++++++------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/packages/nimble-components/src/rich-text/editor/testing/rich-text-editor.pageobject.ts b/packages/nimble-components/src/rich-text/editor/testing/rich-text-editor.pageobject.ts index e92b30bdee..8f680dc1f1 100644 --- a/packages/nimble-components/src/rich-text/editor/testing/rich-text-editor.pageobject.ts +++ b/packages/nimble-components/src/rich-text/editor/testing/rich-text-editor.pageobject.ts @@ -288,10 +288,9 @@ export class RichTextEditorPageObject { public async isMentionListboxOpened(): Promise { await waitForUpdatesAsync(); - return ( - !this.getMentionListbox() - ?.shadowRoot?.querySelector(anchoredRegionTag)?.hidden - ); + return !this.getMentionListbox()?.shadowRoot?.querySelector( + anchoredRegionTag + )?.hidden; } public getEditorMentionViewAttributeValues(attribute: string): string[] { diff --git a/packages/nimble-components/src/rich-text/editor/tests/rich-text-editor.spec.ts b/packages/nimble-components/src/rich-text/editor/tests/rich-text-editor.spec.ts index cb4054ddc9..e26ad7592b 100644 --- a/packages/nimble-components/src/rich-text/editor/tests/rich-text-editor.spec.ts +++ b/packages/nimble-components/src/rich-text/editor/tests/rich-text-editor.spec.ts @@ -1134,14 +1134,19 @@ describe('RichTextEditor', () => { ] as const; parameterizeSpec(differentInvalidLinks, (spec, name, value) => { - spec(`${name} renders as plain text in editor`, async () => { - await pageObject.pasteHTMLToEditor(value.input); - - expect(pageObject.getEditorTagNames()).toEqual(['P']); - expect(pageObject.getEditorLeafContents()).toEqual([ - value.text - ]); - }); + spec( + `${name} renders as plain text in editor`, + async () => { + await pageObject.pasteHTMLToEditor(value.input); + + expect(pageObject.getEditorTagNames()).toEqual([ + 'P' + ]); + expect(pageObject.getEditorLeafContents()).toEqual([ + value.text + ]); + } + ); }); });