From 1bfe32dc80346ec3e884a6bdced66ce7f051f641 Mon Sep 17 00:00:00 2001 From: Leandro Costa Date: Thu, 26 Jan 2023 23:12:21 -0300 Subject: [PATCH] Refatorando nomeclatura dos testes --- __tests__/lhisp-oauth-client.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/__tests__/lhisp-oauth-client.test.ts b/__tests__/lhisp-oauth-client.test.ts index c757210..b5909c6 100644 --- a/__tests__/lhisp-oauth-client.test.ts +++ b/__tests__/lhisp-oauth-client.test.ts @@ -16,8 +16,8 @@ const contentTypeApplicationJson = "application/json"; const defaultGrantValue='client_credentials'; const defaultGrantType=`{"grant_type":"${defaultGrantValue}"}`; -describe("lhisp-oauth-client", ()=>{ - it("Shoud Get Access Token with Standard Config", async ()=>{ +describe("Get Access Token", ()=>{ + it("Shoud Get with Standard Config", async ()=>{ const cli = getOauthClient(); mockedAxios.request.mockReset(); mockedAxios.request.mockResolvedValueOnce({ @@ -43,7 +43,7 @@ describe("lhisp-oauth-client", ()=>{ })); }); - it("Shoud Get Access Token with Custom Auth Header", async ()=>{ + it("Shoud Get with Custom Auth Header", async ()=>{ const cli = getOauthClient({ ...baseClientParams, authHeaderName: 'CustomAuthorizationHeader', @@ -72,7 +72,7 @@ describe("lhisp-oauth-client", ()=>{ })); }); - it("Shoud Get Access Token with Custom Grant Type", async ()=>{ + it("Shoud Get with Custom Grant Type", async ()=>{ const cli = getOauthClient({ ...baseClientParams, grantType: 'PermissaoCustom', @@ -101,7 +101,7 @@ describe("lhisp-oauth-client", ()=>{ })); }); - it("Shoud Get Access Token with Auth Scope", async ()=>{ + it("Shoud Get with Custom Auth Scope", async ()=>{ const cli = getOauthClient({ ...baseClientParams, authScope: 'EscopoCustom', @@ -130,7 +130,7 @@ describe("lhisp-oauth-client", ()=>{ })); }); - it("Shoud Get Access Token with Credentials on Request body", async ()=>{ + it("Shoud Get with Credentials on Request body", async ()=>{ const cli = getOauthClient({ ...baseClientParams, sendAuthCredentialsOnRequestBody: true,