import { beforeEach, describe, expect, it } from 'vitest' import { axe } from 'vitest-axe' import { AspectRatio } from '.' import type { VueWrapper } from '@vue/test-utils' import { mount } from '@vue/test-utils' describe('given a default AspectRatio', async () => { let wrapper: VueWrapper> beforeEach(() => { wrapper = mount(AspectRatio, { slots: { default: `Landscape photograph by Tobias Tullius`, }, }) }) it('should pass axe accessibility tests', async () => { expect(await axe(wrapper.element)).toHaveNoViolations() }) it('should render as snapshot', () => { expect(wrapper.html()).toMatchSnapshot() }) })