1- import VaccinesForPregnant from "@src/app/vaccines-during-pregnancy/page" ;
1+ import VaccinesDuringPregnancy from "@src/app/vaccines-during-pregnancy/page" ;
22import { assertBackLinkIsPresent } from "@test-data/utils/back-link-helpers" ;
33import { render , screen } from "@testing-library/react" ;
44
55jest . mock ( "@src/app/_components/nhs-frontend/BackLink" , ( ) => jest . fn ( ( ) => < div data-testid = "back-link" > </ div > ) ) ;
66
7- describe ( "VaccinesForPregnantPeople " , ( ) => {
7+ describe ( "VaccinesDuringPregnancy " , ( ) => {
88 const vaccines = [
99 {
1010 name : "Whooping cough (Pertussis)" ,
@@ -15,21 +15,21 @@ describe("VaccinesForPregnantPeople", () => {
1515 ] ;
1616
1717 it ( "should render heading" , ( ) => {
18- render ( < VaccinesForPregnant /> ) ;
18+ render ( < VaccinesDuringPregnancy /> ) ;
1919
2020 const heading : HTMLElement = screen . getByRole ( "heading" , { name : "Vaccines during pregnancy" , level : 1 } ) ;
2121
2222 expect ( heading ) . toBeVisible ( ) ;
2323 } ) ;
2424
2525 it ( "should render back link" , ( ) => {
26- render ( < VaccinesForPregnant /> ) ;
26+ render ( < VaccinesDuringPregnancy /> ) ;
2727
2828 assertBackLinkIsPresent ( screen ) ;
2929 } ) ;
3030
3131 it . each ( vaccines ) ( `should render card link with description for $name` , ( { name, description, link } ) => {
32- render ( < VaccinesForPregnant /> ) ;
32+ render ( < VaccinesDuringPregnancy /> ) ;
3333
3434 const cardLink : HTMLElement = screen . getByRole ( "link" , { name } ) ;
3535 const cardDescription : HTMLElement = screen . getByText ( description ) ;
@@ -40,7 +40,7 @@ describe("VaccinesForPregnantPeople", () => {
4040 } ) ;
4141
4242 it ( "renders vaccines for all ages button" , async ( ) => {
43- render ( < VaccinesForPregnant /> ) ;
43+ render ( < VaccinesDuringPregnancy /> ) ;
4444 expectLinkToBeRendered ( "View vaccines for all ages" , "/vaccines-for-all-ages" ) ;
4545 } ) ;
4646} ) ;
0 commit comments