Skip to content

Commit

Permalink
fix: proper mock response
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Sep 25, 2024
1 parent 7bfab71 commit 7cbf3aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/backend/src/tests/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export const createTestApp = async (
.reply(200, { recovery_link: 'https://example.com' })
.persist()

nock(config.authAdminApiUrl).post('').reply(200, {}).persist()
nock(config.authAdminApiUrl)
.post('')
.reply(200, { data: { createAuthTenant: { success: true } } })
.persist()
// Since wallet addresses MUST use HTTPS, manually mock an HTTPS proxy to the Open Payments / SPSP server
nock(config.openPaymentsUrl)
.get(/.*/)
Expand Down

0 comments on commit 7cbf3aa

Please sign in to comment.