Skip to content

Commit

Permalink
Refactor integration test helpers
Browse files Browse the repository at this point in the history
This commit performs three operations:

1. Move `integration-tests/helpers.js` to
   `integration-tests/helpers/index.js`.
2. Move `FakeAgent` from inside `integration-tests/helpers/index.js` to
   its own file called `integration-tests/helpers/fake_agent.js`.
3. Move the setting up of the Express app inside the `FakeAgent.start`
   method to a private helper function.
  • Loading branch information
watson committed Aug 26, 2024
1 parent 6e0ce40 commit 6b1d5bd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions integration-tests/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,6 @@ 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 6b1d5bd

Please sign in to comment.