diff --git a/package.json b/package.json index e90a4dbfbf6..e37bd39f4fd 100644 --- a/package.json +++ b/package.json @@ -145,5 +145,6 @@ "testMatch": [ "/test/jest/**" ] - } + }, + "packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0" } diff --git a/test/mock-agent.js b/test/mock-agent.js index 49344d074d4..98e0abdddaf 100644 --- a/test/mock-agent.js +++ b/test/mock-agent.js @@ -944,7 +944,7 @@ test('MockAgent - getCallHistory with no name parameter with request should retu const method = 'POST' const body = { data: 'value' } const query = { a: 1 } - const headers = { authorization: 'Bearer token' } + const headers = { 'content-type': 'application/json' } await request(url, { method, query, body: JSON.stringify(body), headers }) @@ -1027,7 +1027,7 @@ test('MockAgent - getCallHistory with name parameter should return the intercept const method = 'POST' const body = { data: 'value' } const query = { a: 1 } - const headers = { authorization: 'Bearer token' } + const headers = { 'content-type': 'application/json' } await request(url, { method, query, body: JSON.stringify(body), headers }) @@ -1164,7 +1164,7 @@ test('MockAgent - clearAllCallHistory should clear all call histories', async (t const method = 'POST' const body = { data: 'value' } const query = { a: 1 } - const headers = { authorization: 'Bearer token' } + const headers = { 'content-type': 'application/json' } await request(url, { method, query, body: JSON.stringify(body), headers }) await request(url, { method, query, body: JSON.stringify(body), headers })