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 defaultGrantValue='client_credentials';
|
||||||
const defaultGrantType=`{"grant_type":"${defaultGrantValue}"}`;
|
const defaultGrantType=`{"grant_type":"${defaultGrantValue}"}`;
|
||||||
|
|
||||||
describe("lhisp-oauth-client", ()=>{
|
describe("Get Access Token", ()=>{
|
||||||
it("Shoud Get Access Token with Standard Config", async ()=>{
|
it("Shoud Get with Standard Config", async ()=>{
|
||||||
const cli = getOauthClient();
|
const cli = getOauthClient();
|
||||||
mockedAxios.request.mockReset();
|
mockedAxios.request.mockReset();
|
||||||
mockedAxios.request.mockResolvedValueOnce({
|
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({
|
const cli = getOauthClient({
|
||||||
...baseClientParams,
|
...baseClientParams,
|
||||||
authHeaderName: 'CustomAuthorizationHeader',
|
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({
|
const cli = getOauthClient({
|
||||||
...baseClientParams,
|
...baseClientParams,
|
||||||
grantType: 'PermissaoCustom',
|
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({
|
const cli = getOauthClient({
|
||||||
...baseClientParams,
|
...baseClientParams,
|
||||||
authScope: 'EscopoCustom',
|
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({
|
const cli = getOauthClient({
|
||||||
...baseClientParams,
|
...baseClientParams,
|
||||||
sendAuthCredentialsOnRequestBody: true,
|
sendAuthCredentialsOnRequestBody: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue