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 {