diff --git a/src/components/icon-button/icon-button.test.ts b/src/components/icon-button/icon-button.test.ts index 351e5c961..8ee1af16e 100644 --- a/src/components/icon-button/icon-button.test.ts +++ b/src/components/icon-button/icon-button.test.ts @@ -1,6 +1,8 @@ import { expect, fixture, html, waitUntil } from '@open-wc/testing'; import type SlIconButton from './icon-button'; +type LinkTarget = '_self' | '_blank' | '_parent' | '_top'; + describe('', () => { describe('defaults ', () => { it('default properties', async () => { @@ -62,7 +64,7 @@ describe('', () => { }); describe('and target is present', () => { - ['_blank', '_parent', '_self', '_top'].forEach((target: string) => { + ['_blank', '_parent', '_self', '_top'].forEach((target: LinkTarget) => { it(`the anchor target is the provided target: ${target}`, async () => { const el = await fixture( html` ` @@ -80,7 +82,7 @@ describe('', () => { }); describe('and download is present', () => { - it(`the anchor downlown attribute is the provided download`, async () => { + it(`the anchor download attribute is the provided download`, async () => { const fakeDownload = 'some/path'; const el = await fixture( html` ` diff --git a/src/components/icon/library.ts b/src/components/icon/library.ts index 2ac63c5ad..a0133d88d 100644 --- a/src/components/icon/library.ts +++ b/src/components/icon/library.ts @@ -28,7 +28,7 @@ export function getIconLibrary(name?: string) { export function registerIconLibrary( name: string, options: { resolver: IconLibraryResolver; mutator?: IconLibraryMutator } -): void { +) { unregisterIconLibrary(name); registry.push({ name,