Skip to content

Commit

Permalink
test: add all setup vars to configured client test
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Nov 29, 2024
1 parent c033f24 commit 6f0d419
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.planx.uk/modules/analytics/metabase/shared/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ describe("Metabase client", () => {

test("returns configured client", async () => {
const client = createMetabaseClient();
expect(client.defaults.baseURL).toBe(process.env.METABASE_URL_EXT);
expect(client.defaults.headers["X-API-Key"]).toBe(
process.env.METABASE_API_KEY,
);
expect(client.defaults.headers["Content-Type"]).toBe("application/json");
expect(client.defaults.timeout).toBe(30_000);
});

describe("validates configuration", () => {
Expand Down

0 comments on commit 6f0d419

Please sign in to comment.