fix: typos
Some checks failed
CI Pipeline / build-and-test (push) Failing after 1m32s
CI Pipeline / publish (push) Has been skipped

This commit is contained in:
Leandro Costa 2025-06-27 13:52:16 -03:00
parent 3270822cc1
commit 36c32f1433
2 changed files with 7 additions and 7 deletions

View file

@ -8,7 +8,7 @@ const mockedAxios = axios as jest.Mocked<typeof axios>;
const apiUrl = "https://myapi.com";
const authUrl = "https://auth.myapi.com/oauth/token";
const clientId = "testClientdId";
const clientId = "testClientId";
const clientSecret = "testClientSecret";
const baseClientParams = { apiUrl, authUrl, clientId, clientSecret };
const basicAuth = `Basic ${Buffer.from(`${clientId}:${clientSecret}`).toString("base64")}`;
@ -23,13 +23,13 @@ describe("Get Access Token", () => {
mockedAxios.request.mockResolvedValueOnce({ data: mockedAccessToken });
});
it("Shoud Get with Standard Config", async () => {
it("Should Get with Standard Config", async () => {
const cli = getOauthClient();
await accessTokenValidator(cli);
validateDefaultGetAccessToken();
});
it("Shoud Get with Custom Auth Header", async () => {
it("Should Get with Custom Auth Header", async () => {
const cli = getOauthClient({
...baseClientParams,
authHeaderName: "CustomAuthorizationHeader",
@ -48,7 +48,7 @@ describe("Get Access Token", () => {
);
});
it("Shoud Get with Custom Grant Type", async () => {
it("Should Get with Custom Grant Type", async () => {
const cli = getOauthClient({
...baseClientParams,
grantType: "PermissaoCustom",
@ -67,7 +67,7 @@ describe("Get Access Token", () => {
);
});
it("Shoud Get with Custom Auth Scope", async () => {
it("Should Get with Custom Auth Scope", async () => {
const cli = getOauthClient({
...baseClientParams,
authScope: "EscopoCustom",
@ -86,7 +86,7 @@ describe("Get Access Token", () => {
);
});
it("Shoud Get with Credentials on Request body", async () => {
it("Should Get with Credentials on Request body", async () => {
const cli = getOauthClient({
...baseClientParams,
authContentType: contentTypeApplicationJson,

View file

@ -1,6 +1,6 @@
{
"name": "lhisp-oauth-client-dev",
"version": "1.0.29",
"version": "1.0.20",
"main": "src/index",
"types": "src/index.d.ts",
"repository": {