diff --git a/src/components/alert/bl-alert.test.ts b/src/components/alert/bl-alert.test.ts index 8f9421b4..bf7f2299 100644 --- a/src/components/alert/bl-alert.test.ts +++ b/src/components/alert/bl-alert.test.ts @@ -153,14 +153,11 @@ describe("Slot", () => { ); const actionSlot = el.shadowRoot!.querySelector('slot[name="action"]') as HTMLSlotElement; - const actionElement = actionSlot?.assignedElements()[0] as HTMLElement; + const [actionElement, actionSpanElement] = actionSlot.assignedElements(); - expect(actionElement).to.exist; + expect(actionElement as HTMLElement).to.exist; expect(actionElement.tagName).to.eq("BL-BUTTON"); - - const actionSpanElement = actionSlot?.assignedElements()[1] as HTMLElement; - - expect(actionSpanElement).to.not.exist; + expect(actionSpanElement as HTMLElement).to.not.exist; const actionSecondarySlot = el.shadowRoot!.querySelector( 'slot[name="action-secondary"]' diff --git a/src/components/notification/bl-notification.ts b/src/components/notification/bl-notification.ts index 672fa3e3..3bc525f8 100644 --- a/src/components/notification/bl-notification.ts +++ b/src/components/notification/bl-notification.ts @@ -148,7 +148,6 @@ export default class BlNotification extends LitElement { // Allow only moving up const movedY = Math.min(currentY - this.touchStartY, 0); - console.log(movedY); currentTarget.style.transform = `translateY(${movedY}px)`; }