Skip to content

Commit

Permalink
one last error
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Jul 2, 2024
1 parent 09d33e1 commit 8a47fe1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/e2e/query.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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."}`,
);
});
});

0 comments on commit 8a47fe1

Please sign in to comment.