From 29a1dec4de0aa7ba64ef068a83b1b8589fbc3ad0 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 28 Nov 2023 17:49:26 +0100 Subject: fix(services,types): make queries and types coherent for Topic * some nodes was missing in topicQuery * a node was mispelled in topicsListQuery * add tests for all topics fetchers --- tests/msw/handlers/topics/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/msw/handlers/topics/index.ts (limited to 'tests/msw/handlers/topics/index.ts') diff --git a/tests/msw/handlers/topics/index.ts b/tests/msw/handlers/topics/index.ts new file mode 100644 index 0000000..e29694b --- /dev/null +++ b/tests/msw/handlers/topics/index.ts @@ -0,0 +1,11 @@ +import { topicHandler } from './topic.handler'; +import { topicsCountHandler } from './topics-count.handler'; +import { topicsListHandler } from './topics-list.handler'; +import { topicsSlugsHandler } from './topics-slugs.handler'; + +export const topicsHandlers = [ + topicHandler, + topicsCountHandler, + topicsListHandler, + topicsSlugsHandler, +]; -- cgit v1.2.3