diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-12-01 13:26:44 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-12-01 17:23:19 +0100 |
| commit | dfdbf6cac1fe3719dc71e130129d28e04ba4e225 (patch) | |
| tree | f865bdad53cef95bdfb10fc04174a0173ab36f15 /src/services/graphql/helpers/convert-wp-topic-to-topic.test.ts | |
| parent | 5b762b1b669454a89899c4bdf6008027d9615acf (diff) | |
refactor(pages): refine Thematic pages
* add a table of contents (however posts heading are
not included)
* rename posts list section title
* add a useThematic hook to refresh thematic contents
* add a useThematicLists hook to refresh thematics list
* add a `notIn` filter in thematics list fetcher to directly
remove unwanted thematics
* add Cypress tests
Diffstat (limited to 'src/services/graphql/helpers/convert-wp-topic-to-topic.test.ts')
| -rw-r--r-- | src/services/graphql/helpers/convert-wp-topic-to-topic.test.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/services/graphql/helpers/convert-wp-topic-to-topic.test.ts b/src/services/graphql/helpers/convert-wp-topic-to-topic.test.ts index bfe2ba9..145b19d 100644 --- a/src/services/graphql/helpers/convert-wp-topic-to-topic.test.ts +++ b/src/services/graphql/helpers/convert-wp-topic-to-topic.test.ts @@ -34,6 +34,7 @@ describe('convert-wp-topic-to-topic', () => { const result = convertWPTopicToTopic(topic); expect(result.content).toBe(topic.contentParts.afterMore); + expect(result.id).toBe(topic.databaseId); expect(result.intro).toBe(topic.contentParts.beforeMore); expect(result.meta.articles).toBeUndefined(); expect(result.meta.cover).toBeUndefined(); |
