From 9be350d80b92f0f0078809f852f1cdd8cb3513f4 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Sat, 30 Aug 2025 22:49:58 -0700 Subject: [PATCH] Fix tests --- .../payments/stripe/account-info.test.ts | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/apps/e2e/tests/backend/endpoints/api/v1/internal/payments/stripe/account-info.test.ts b/apps/e2e/tests/backend/endpoints/api/v1/internal/payments/stripe/account-info.test.ts index bde9db598..904814eba 100644 --- a/apps/e2e/tests/backend/endpoints/api/v1/internal/payments/stripe/account-info.test.ts +++ b/apps/e2e/tests/backend/endpoints/api/v1/internal/payments/stripe/account-info.test.ts @@ -1,6 +1,6 @@ import { describe } from "vitest"; import { it } from "../../../../../../../helpers"; -import { Auth, Project, backendContext, niceBackendFetch } from "../../../../../../backend-helpers"; +import { Project, backendContext, niceBackendFetch } from "../../../../../../backend-helpers"; describe("GET /api/v1/internal/payments/stripe/account-info", () => { describe("without project access", () => { @@ -84,7 +84,7 @@ describe("GET /api/v1/internal/payments/stripe/account-info", () => { }); describe("with admin access", () => { - it("should return null when no stripe account is configured", async ({ expect }) => { + it("should throw error when no stripe account is configured", async ({ expect }) => { await Project.createAndSwitch({ display_name: "Test Project Without Stripe" }); @@ -95,9 +95,14 @@ describe("GET /api/v1/internal/payments/stripe/account-info", () => { expect(response).toMatchInlineSnapshot(` NiceResponse { - "status": 200, - "body": null, - "headers": Headers {