diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-29 18:07:20 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-29 18:07:20 +0100 |
| commit | d363306235f2a48f16e488f20f73e2233ddcf281 (patch) | |
| tree | 5e86a7b5f38416d7ee56a9aff5ef972aa73d82b1 /src/services/graphql/helpers/convert-taxonomy-to-page-link.test.ts | |
| parent | dfa894b76ee3584bf169710c78c57330c5d6ee67 (diff) | |
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
Diffstat (limited to 'src/services/graphql/helpers/convert-taxonomy-to-page-link.test.ts')
| -rw-r--r-- | src/services/graphql/helpers/convert-taxonomy-to-page-link.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/graphql/helpers/convert-taxonomy-to-page-link.test.ts b/src/services/graphql/helpers/convert-taxonomy-to-page-link.test.ts index 54a62ad..f923850 100644 --- a/src/services/graphql/helpers/convert-taxonomy-to-page-link.test.ts +++ b/src/services/graphql/helpers/convert-taxonomy-to-page-link.test.ts @@ -18,7 +18,7 @@ describe('convert-taxonomy-to-page-link', () => { expect(result.id).toBe(thematic.databaseId); expect(result.logo).toBeUndefined(); expect(result.name).toBe(thematic.title); - expect(result.url).toBe(`${ROUTES.THEMATICS.INDEX}/${thematic.slug}`); + expect(result.url).toBe(`${ROUTES.THEMATICS}/${thematic.slug}`); }); it('can convert a WPTopicPreview object to a Topic object', () => { |
