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, } })); });