Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Nov 26, 2024
1 parent 1aef0ef commit b3947be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api.planx.uk/modules/analytics/metabase/shared/client.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import axios from "axios";
import type { AxiosInstance } from "axios";
import {
validateConfig,
createMetabaseClient,
Expand Down Expand Up @@ -36,14 +35,14 @@ describe("Metabase client", () => {
test("throws error when URL_EXT is missing", () => {
vi.stubEnv("METABASE_URL_EXT", undefined);
expect(() => validateConfig()).toThrow(
"Missing environment variable 'METABASE_URL_EXT'"
"Missing environment variable 'METABASE_URL_EXT'",
);
});

test("throws error when API_KEY is missing", () => {
vi.stubEnv("METABASE_API_KEY", undefined);
expect(() => validateConfig()).toThrow(
"Missing environment variable 'METABASE_API_KEY'"
"Missing environment variable 'METABASE_API_KEY'",
);
});

Expand Down

0 comments on commit b3947be

Please sign in to comment.