Refatorando nomeclatura dos testes

This commit is contained in:
Leandro Costa 2023-01-26 23:12:21 -03:00
parent bb932a781f
commit 1bfe32dc80

View file

@ -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,