From d363306235f2a48f16e488f20f73e2233ddcf281 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 29 Nov 2023 18:07:20 +0100 Subject: refactor(pages): improve Homepage * move custom homepage components that does not require props to the MDX file (links should not need to be translated here but where they are defined) * move SEO title and meta desc to MDX file * make Page component the wrapper instead of using a React fragment * fix MDX module types --- src/services/graphql/helpers/convert-wp-thematic-to-thematic.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/services/graphql/helpers/convert-wp-thematic-to-thematic.test.ts') diff --git a/src/services/graphql/helpers/convert-wp-thematic-to-thematic.test.ts b/src/services/graphql/helpers/convert-wp-thematic-to-thematic.test.ts index e535a21..435489d 100644 --- a/src/services/graphql/helpers/convert-wp-thematic-to-thematic.test.ts +++ b/src/services/graphql/helpers/convert-wp-thematic-to-thematic.test.ts @@ -42,7 +42,7 @@ describe('convert-wp-thematic-to-thematic', () => { expect(result.meta.seo.description).toBe(thematic.seo.metaDesc); expect(result.meta.seo.title).toBe(thematic.seo.title); expect(result.meta.relatedTopics).toBeUndefined(); - expect(result.slug).toBe(`${ROUTES.THEMATICS.INDEX}/${thematic.slug}`); + expect(result.slug).toBe(`${ROUTES.THEMATICS}/${thematic.slug}`); expect(result.title).toBe(thematic.title); }); /* eslint-enable max-statements */ -- cgit v1.2.3