Refatorando nomeclatura dos testes
This commit is contained in:
parent
bb932a781f
commit
1bfe32dc80
1 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue