Skip to content

Commit

Permalink
test: remove unnecessary baseURL variable and check
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Nov 29, 2024
1 parent ee49ce2 commit c033f24
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@ describe("Metabase client", () => {

describe("Error handling", () => {
test("retries then succeeds on 5xx errors", async () => {
const baseURL = process.env.METABASE_URL_EXT;
if (!baseURL) {
throw new Error("METABASE_URL_EXT must be defined for tests");
}

const metabaseScope = nock(baseURL);
const metabaseScope = nock(process.env.METABASE_URL_EXT!);

metabaseScope
.get("/test")
Expand Down

0 comments on commit c033f24

Please sign in to comment.