From c09da7eb8a04b2f2bdeae0f19595cc44b16a800b Mon Sep 17 00:00:00 2001 From: Michal Struck Date: Wed, 26 Feb 2025 15:32:44 -0300 Subject: [PATCH] fix tests --- web/tests/api/v2/public/apps/apps.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/tests/api/v2/public/apps/apps.test.ts b/web/tests/api/v2/public/apps/apps.test.ts index a78832305..44f7ff54b 100644 --- a/web/tests/api/v2/public/apps/apps.test.ts +++ b/web/tests/api/v2/public/apps/apps.test.ts @@ -1,4 +1,5 @@ import { GET } from "@/api/v2/public/apps"; +import { AllCategory } from "@/lib/categories"; import { Categories } from "@/lib/constants"; import { NextRequest } from "next/server"; import { getSdk as getAppsSdk } from "../../../../../api/v2/public/apps/graphql/get-app-rankings.generated"; @@ -340,6 +341,7 @@ describe("/api/v2/public/apps", () => { expect(response.status).toBe(200); expect(await response.json()).toEqual({ app_rankings: { top_apps: [], highlights: [] }, + all_category: AllCategory, categories: Categories, }); }); @@ -571,6 +573,7 @@ describe("/api/v2/public/apps", () => { }, ], }, + all_category: AllCategory, categories: Categories, }); }); @@ -682,6 +685,7 @@ describe("/api/v2/public/apps", () => { ], highlights: [], }, + all_category: AllCategory, categories: Categories, }); });