Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: CodeQL sniffing
  • Loading branch information
blephy committed Feb 18, 2025
commit 6f43a401388fefaa994353aefd3c9d053060eb73
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,6 @@
"testMatch": [
"<rootDir>/test/jest/**"
]
}
},
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
}
6 changes: 3 additions & 3 deletions test/mock-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down Expand Up @@ -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 })

Expand Down Expand Up @@ -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 })
Expand Down