Skip to content

Commit

Permalink
Add default secrets for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lumaxis authored Mar 25, 2024
1 parent c6f71d3 commit dfb1c05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ const init = require('express-init')
const Application = require('../app')
const config = proxyquire('../bin/config', {
['painless-config']: {
get: () => null
get: (name) => {
return {
'WEBHOOK_GITHUB_SECRET': 'secret',
'WEBHOOK_CRAWLER_SECRET': 'secret'
}[name] || null
}
}
})

Expand Down

0 comments on commit dfb1c05

Please sign in to comment.