Skip to content

Commit

Permalink
EES-5632 FE - Changing the view-model field names to match the new BE…
Browse files Browse the repository at this point in the history
… field names
  • Loading branch information
jack-hive committed Dec 11, 2024
1 parent fa0255e commit 9d368fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ describe('redirectPages', () => {
const nextSpy = jest.spyOn(NextResponse, 'next');

const testRedirects: Redirects = {
methodologies: [
methodologyRedirects: [
{ fromSlug: 'original-slug-1', toSlug: 'updated-slug-1' },
{ fromSlug: 'original-slug-2', toSlug: 'updated-slug-2' },
],
publications: [
publicationRedirects: [
{ fromSlug: 'original-slug-3', toSlug: 'updated-slug-3' },
{ fromSlug: 'original-slug-4', toSlug: 'updated-slug-4' },
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const cacheTime = getCacheTime();
let cachedRedirects: CachedRedirects | undefined;

const redirectPaths = {
methodologies: '/methodology',
publications: '/find-statistics',
methodologyRedirects: '/methodology',
publicationRedirects: '/find-statistics',
};

export default async function redirectPages(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface Redirects {
methodologies: Redirect[];
publications: Redirect[];
methodologyRedirects: Redirect[];
publicationRedirects: Redirect[];
}

export type RedirectType = keyof Redirects;
Expand Down

0 comments on commit 9d368fd

Please sign in to comment.