From 8a47fe1cc00a165ba1a7f40d2eff0cf92ce3c0ca Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Tue, 2 Jul 2024 09:12:14 +0200 Subject: [PATCH] one last error --- tests/e2e/query.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/e2e/query.spec.ts b/tests/e2e/query.spec.ts index b8af65c..70ccda5 100644 --- a/tests/e2e/query.spec.ts +++ b/tests/e2e/query.spec.ts @@ -2,8 +2,6 @@ import { expect } from "chai"; import { QueryParameter, QueryAPI } from "../../src"; import { PLUS_KEY, BASIC_KEY, expectAsyncThrow } from "./util"; -const PREMIUM_PLAN_MESSAGE = `HTTP Error - Status: 403, Message: {"error":"Query management endpoints are only available in our paid plans. Please upgrade to a paid plan to use it."}`; - describe("QueryAPI: Premium - CRUD Operations", () => { let plusClient: QueryAPI; @@ -53,13 +51,13 @@ describe("QueryAPI: Errors", () => { basicClient = new QueryAPI(BASIC_KEY); }); - it.only("Basic Plan Failure", async () => { + it("Basic Plan Failure", async () => { await expectAsyncThrow( basicClient.createQuery({ name: "Query Name", query_sql: "select 1", }), - `Response Error: ${PREMIUM_PLAN_MESSAGE}`, + `Response Error: HTTP - Status: 403, Message: {"error":"Query management endpoints are only available in our paid plans. Please upgrade to a paid plan to use it."}`, ); }); });