From dfa894b76ee3584bf169710c78c57330c5d6ee67 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 29 Nov 2023 12:28:03 +0100 Subject: fix(pages,services): make thematics & topics pages usable again When I refactored the fetchers and convertors in #f111685 I forgot to convert WPThematicPreview and WPTopicPreview so the thematics and topics pages was broken. I also: * removed the ToC added by error in #70b4f63 * fix heading styles * fix website url in topics pages --- .../graphql/helpers/convert-post-preview-to-article-preview.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/services/graphql/helpers/convert-post-preview-to-article-preview.test.ts') diff --git a/src/services/graphql/helpers/convert-post-preview-to-article-preview.test.ts b/src/services/graphql/helpers/convert-post-preview-to-article-preview.test.ts index c13684f..cb14fdb 100644 --- a/src/services/graphql/helpers/convert-post-preview-to-article-preview.test.ts +++ b/src/services/graphql/helpers/convert-post-preview-to-article-preview.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from '@jest/globals'; import type { WPPostPreview, WPThematicPreview } from '../../../types'; import { convertPostPreviewToArticlePreview } from './convert-post-preview-to-article-preview'; -import { convertTaxonomyToPageLink } from './convert-taxonomy-to-page-link'; +import { convertWPThematicPreviewToPageLink } from './convert-taxonomy-to-page-link'; import { convertWPImgToImg } from './convert-wp-image-to-img'; describe('convert-post-preview-to-article-preview', () => { @@ -124,7 +124,7 @@ describe('convert-post-preview-to-article-preview', () => { const result = convertPostPreviewToArticlePreview(post); expect(result.meta.thematics).toStrictEqual( - thematics.map(convertTaxonomyToPageLink) + thematics.map(convertWPThematicPreviewToPageLink) ); }); }); -- cgit v1.2.3