diff --git a/__tests__/lhisp-oauth-client.test.ts b/__tests__/lhisp-oauth-client.test.ts index 2967226..be4cf85 100644 --- a/__tests__/lhisp-oauth-client.test.ts +++ b/__tests__/lhisp-oauth-client.test.ts @@ -8,7 +8,7 @@ const mockedAxios = axios as jest.Mocked; 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, diff --git a/package.json b/package.json index ba3bdb0..d9b1b26 100644 --- a/package.json +++ b/package.json @@ -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": {