Skip to content

Commit

Permalink
PERF-1344: added JWT test
Browse files Browse the repository at this point in the history
  • Loading branch information
VSevostianov committed Feb 17, 2025
1 parent 838beef commit 201795a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/lokalise/lokalise_api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ describe("LokaliseApi", () => {
expect(client.clientData.enableCompression).to.be.false;
expect(client.clientData.version).to.eq("api2");
});
});

//TODO add a JWT test
it("is expected to contain clientData when jwt is provided", () => {
const client = new LokaliseApi({ jwt: process.env.API_KEY });
expect(client.clientData.token).to.eq(process.env.API_KEY);
expect(client.clientData.authHeader).to.eq("Authorization");
expect(client.clientData.enableCompression).to.be.false;
expect(client.clientData.version).to.eq("api2");
});
});

describe("LokaliseApi host", () => {
it("is expected to have empty host by default", () => {
Expand Down

0 comments on commit 201795a

Please sign in to comment.