Skip to content

Commit

Permalink
test: allow FakeAgent to respond to remote config requests
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Aug 26, 2024
1 parent 48ebf08 commit 6e0ce40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration-tests/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@ function sandboxCwd () {
return sandbox.folder
}

function base64 (strOrObj) {
const str = typeof strOrObj === 'string' ? strOrObj : JSON.stringify(strOrObj)
return Buffer.from(str).toString('base64')
}

module.exports = {
FakeAgent,
spawnProc,
Expand Down

0 comments on commit 6e0ce40

Please sign in to comment.