Skip to content

Commit 1b8f5bf

Browse files
committed
Remove test fixture from Consent Banner component test suite
1 parent 17763e1 commit 1b8f5bf

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

‎src/components/Consent/Banner/client/__tests__/banner.fixture.astro‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎src/components/Consent/Banner/client/__tests__/index.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { beforeEach, describe, expect, it, vi } from 'vitest'
44
import { experimental_AstroContainer as AstroContainer } from 'astro/container'
5-
import BannerFixture from '@components/Consent/Banner/client/__tests__/banner.fixture.astro'
5+
import ConsentBanner from '@components/Consent/Banner/index.astro'
66
import type { ConsentBannerElement } from '@components/Consent/Banner/client'
77
import type { WebComponentModule } from '@components/scripts/@types/webComponentModule'
88
import {
@@ -70,7 +70,7 @@ const renderConsentBanner = async (
7070

7171
await executeRender<ConsentBannerModule>({
7272
container,
73-
component: BannerFixture,
73+
component: ConsentBanner,
7474
moduleSpecifier: '@components/Consent/Banner/client/index',
7575
selector: 'consent-banner',
7676
waitForReady: waitForBannerReady,

‎src/components/Consent/Banner/client/__tests__/selectors.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { beforeEach, describe, expect, it } from 'vitest'
44
import { experimental_AstroContainer as AstroContainer } from 'astro/container'
5-
import BannerFixture from '@components/Consent/Banner/client/__tests__/banner.fixture.astro'
5+
import ConsentBanner from '@components/Consent/Banner/index.astro'
66
import type { ConsentBannerElement } from '@components/Consent/Banner/client'
77
import type { WebComponentModule } from '@components/scripts/@types/webComponentModule'
88
import {
@@ -49,7 +49,7 @@ const renderConsentBanner = async (
4949

5050
await executeRender<ConsentBannerModule>({
5151
container,
52-
component: BannerFixture,
52+
component: ConsentBanner,
5353
moduleSpecifier: '@components/Consent/Banner/client/index',
5454
selector: 'consent-banner',
5555
waitForReady: waitForBannerReady,

0 commit comments

Comments
 (0)