From 005fbee2d7f1b32e8727b0b1b60e0496b10db836 Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Wed, 13 Mar 2024 14:24:48 -0400 Subject: [PATCH] prettier --- src/components/tree/tree.component.ts | 4 ++-- src/components/tree/tree.test.ts | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/tree/tree.component.ts b/src/components/tree/tree.component.ts index 34a90d7d..28f47683 100644 --- a/src/components/tree/tree.component.ts +++ b/src/components/tree/tree.component.ts @@ -144,9 +144,9 @@ export default class SlTree extends ShoelaceElement { .forEach((status: 'expand' | 'collapse') => { const existingIcon = item.querySelector(`[slot="${status}-icon"]`); - const expandButtonIcon = this.getExpandButtonIcon(status) + const expandButtonIcon = this.getExpandButtonIcon(status); - if (!expandButtonIcon) return + if (!expandButtonIcon) return; if (existingIcon === null) { // No separator exists, add one diff --git a/src/components/tree/tree.test.ts b/src/components/tree/tree.test.ts index 3b10f15c..8260430c 100644 --- a/src/components/tree/tree.test.ts +++ b/src/components/tree/tree.test.ts @@ -753,7 +753,6 @@ describe('', () => { }); }); - // https://github.com/shoelace-style/shoelace/issues/1916 it("Should not render 'null' if it can't find a custom icon", async () => { const tree = await fixture(html` @@ -761,9 +760,7 @@ describe('', () => { Item 1 - - Item A - + Item A Item 2 @@ -776,8 +773,8 @@ describe('', () => { Item B - `) + `); - expect(tree.textContent).to.not.includes("null") - }) + expect(tree.textContent).to.not.includes('null'); + }); });