From fb749e8befb2dcdc266c2e8b7ef7c9001947143a Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 27 Nov 2023 19:40:40 +0100 Subject: test(services): add tests for posts fetchers --- src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts') diff --git a/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts b/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts index d5ed174..161a50e 100644 --- a/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts +++ b/src/services/graphql/fetchers/posts/fetch-last-post-cursor.ts @@ -1,10 +1,8 @@ import type { GraphQLPageInfo, Nullable } from '../../../../types'; import { fetchGraphQL, getGraphQLUrl } from '../../../../utils/helpers'; -type LastPostCursorResponse = { - posts: Nullable<{ - pageInfo: Pick; - }>; +export type LastPostCursorResponse = { + posts: Nullable>>; }; const lastPostCursorQuery = `query LastPostCursor($first: Int) { -- cgit v1.2.3