From 402374f767ea1c53756717117c2ed1d0b95e5322 Mon Sep 17 00:00:00 2001 From: Leandro Costa Date: Thu, 26 Jan 2023 22:54:01 -0300 Subject: [PATCH] Definindo contentTypeApplicationJson --- __tests__/lhisp-oauth-client.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/__tests__/lhisp-oauth-client.test.ts b/__tests__/lhisp-oauth-client.test.ts index d0fbf7d..e452e46 100644 --- a/__tests__/lhisp-oauth-client.test.ts +++ b/__tests__/lhisp-oauth-client.test.ts @@ -12,6 +12,7 @@ const clientId = "testClientdId"; const clientSecret = "testClientSecret"; const baseClientParams = { apiUrl, authUrl, clientId, clientSecret }; const basicAuth = `Basic ${Buffer.from(`${clientId}:${clientSecret}`).toString('base64')}`; +const contentTypeApplicationJson = "application/json"; describe("lhisp-oauth-client", ()=>{ it("Shout Get Access Token with Standard Config", async ()=>{ @@ -34,7 +35,7 @@ describe("lhisp-oauth-client", ()=>{ method: "POST", headers: { Authorization: basicAuth, - 'Content-Type': "application/json", + 'Content-Type': contentTypeApplicationJson, } })); }); @@ -62,7 +63,7 @@ describe("lhisp-oauth-client", ()=>{ method: "POST", headers: { CustomAuthorizationHeader: basicAuth, - 'Content-Type': "application/json", + 'Content-Type': contentTypeApplicationJson, } })); });