Skip to content

Commit

Permalink
Merge pull request #96 from companieshouse/lp238-create-limited-parte…
Browse files Browse the repository at this point in the history
…nrships-page

add next page navigation to lp-page
  • Loading branch information
HatiDev authored Dec 17, 2024
2 parents 14cd20a + 792255c commit e555871
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/presentation/controller/registration/Routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,22 @@ const registrationRoutingGeneralPartners = {
pageType: RegistrationPageType.generalPartners,
};

const registrationRoutingLimitedPartners = {
previousUrl: WHICH_TYPE_URL,
currentUrl: LIMITED_PARTNERS_URL,
nextUrl: NEXT_URL,
pageType: RegistrationPageType.limitedPartners,
};

const registrationRoutingGeneralPartnerChoice = {
previousUrl: GENERAL_PARTNERS_URL,
currentUrl: GENERAL_PARTNER_CHOICE_URL,
nextUrl: LIMITED_PARTNER_CHOICE_URL,
nextUrl: LIMITED_PARTNERS_URL,
pageType: RegistrationPageType.generalPartnerChoice,
};

export const registrationRoutingLimitedPartnerChoice = {
const registrationRoutingLimitedPartners = {
previousUrl: GENERAL_PARTNER_CHOICE_URL,
currentUrl: LIMITED_PARTNERS_URL,
nextUrl: LIMITED_PARTNER_CHOICE_URL,
pageType: RegistrationPageType.limitedPartners,
};

export const registrationRoutingLimitedPartnerChoice = {
previousUrl: LIMITED_PARTNERS_URL,
currentUrl: LIMITED_PARTNER_CHOICE_URL,
nextUrl: NEXT_URL,
pageType: RegistrationPageType.limitedPartnerChoice,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import cyTranslationText from "../../../../../locales/cy/translations.json";
import app from "../app";
import {
GENERAL_PARTNER_CHOICE_URL,
LIMITED_PARTNER_CHOICE_URL,
LIMITED_PARTNERS_URL,
} from "../../../controller/registration/Routing";
import RegistrationPageType from "../../../../presentation/controller/registration/PageType";

Expand Down Expand Up @@ -43,7 +43,7 @@ describe("General Partner Choice Page", () => {
parameter: selectedType,
});

const redirectUrl = `${LIMITED_PARTNER_CHOICE_URL}?${RegistrationPageType.generalPartnerChoice}=${selectedType}`;
const redirectUrl = `${LIMITED_PARTNERS_URL}?${RegistrationPageType.generalPartnerChoice}=${selectedType}`;
expect(res.status).toBe(302);
expect(res.text).toContain(redirectUrl);
});
Expand Down

0 comments on commit e555871

Please sign in to comment.