Revert "feat: adiciona flag disableAuthContentType"

This reverts commit 970ccff48e.
This commit is contained in:
Leandro Costa 2023-06-16 22:22:00 -03:00
parent c4671a5487
commit 3db6514f40
3 changed files with 5 additions and 23 deletions

View file

@ -105,24 +105,6 @@ describe("Get Access Token", () => {
})
);
});
it("Shoud Get with Credentials without ContentType", async () => {
const cli = getOauthClient({
...baseClientParams,
disableAuthContentType: true,
});
await accessTokenValidator(cli);
expect(mockedAxios.request).toBeCalledWith(
expect.objectContaining({
url: authUrl,
method: "POST",
headers: {
Authorization: basicAuth,
},
data: `grant_type=${defaultGrantValue}`,
})
);
});
});
describe("Request", () => {