diff --git a/frontend/src/assets/icons/OcelotIcons.test.ts b/frontend/src/assets/icons/OcelotIcons.test.ts new file mode 100644 index 000000000..684539c28 --- /dev/null +++ b/frontend/src/assets/icons/OcelotIcons.test.ts @@ -0,0 +1,28 @@ +import { mount } from '@vue/test-utils' +import { navigate } from 'vike/client/router' +import { describe, it, expect, beforeEach, vi } from 'vitest' +import { VIcon } from 'vuetify/components' + +vi.mock('vike/client/router') +vi.mocked(navigate).mockResolvedValue() + +describe('Ocelot Icons', () => { + const Wrapper = () => { + return mount(VIcon, { + props: { + icon: '$history', + color: 'green', + size: 'large', + }, + }) + } + let wrapper: ReturnType + + beforeEach(() => { + wrapper = Wrapper() + }) + + it('renders and tests if the ocelot icon "$history" is installed', () => { + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/frontend/src/components/__snapshots__/IconSVG.test.ts.snap b/frontend/src/assets/icons/__snapshots__/OcelotIcons.test.ts.snap similarity index 71% rename from frontend/src/components/__snapshots__/IconSVG.test.ts.snap rename to frontend/src/assets/icons/__snapshots__/OcelotIcons.test.ts.snap index bce169ac2..5f0268616 100644 --- a/frontend/src/components/__snapshots__/IconSVG.test.ts.snap +++ b/frontend/src/assets/icons/__snapshots__/OcelotIcons.test.ts.snap @@ -1,14 +1,16 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`IconSVG > renders and tests if the custom icons are installed 1`] = ` +exports[`Ocelot Icons > renders and tests if the ocelot icon "$history" is installed 1`] = `