diff --git a/src/lib/components/addons/AddOnsNavigation.svelte b/src/lib/components/addons/AddOnsNavigation.svelte index a2f7285e6..ab5490e21 100644 --- a/src/lib/components/addons/AddOnsNavigation.svelte +++ b/src/lib/components/addons/AddOnsNavigation.svelte @@ -58,7 +58,6 @@ href={`/app/add-ons?category=${key}`} active={active === key} > - {label} {/each} diff --git a/src/lib/components/addons/tests/AddOnsNavigation.test.ts b/src/lib/components/addons/tests/AddOnsNavigation.test.ts new file mode 100644 index 000000000..d258cb1e5 --- /dev/null +++ b/src/lib/components/addons/tests/AddOnsNavigation.test.ts @@ -0,0 +1,8 @@ +import { test, expect } from "vitest"; +import { render } from "@testing-library/svelte"; +import AddOnsNavigation from "../AddOnsNavigation.svelte"; + +test("AddOnsNavigation", () => { + const result = render(AddOnsNavigation); + expect(result.container).toMatchSnapshot(); +}); diff --git a/src/lib/components/addons/tests/__snapshots__/AddOnsNavigation.test.ts.snap b/src/lib/components/addons/tests/__snapshots__/AddOnsNavigation.test.ts.snap new file mode 100644 index 000000000..f950b0b0e --- /dev/null +++ b/src/lib/components/addons/tests/__snapshots__/AddOnsNavigation.test.ts.snap @@ -0,0 +1,245 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`AddOnsNavigation 1`] = ` +
++ Free automations, shortcuts and power-ups from the DocumentCloud community +
+