Skip to content

Commit

Permalink
test: add root slash endpoint to mock server
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Sep 16, 2024
1 parent 36ebde5 commit 2d98d26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/http-mock/cheque-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export function createChequeMockHttpServer(port: number): Server {
const server = createServer((request, response) => {
response.writeHead(200, { 'Content-Type': 'application/json' })

if (request.url === '/') {
response.end('Ethereum Swarm Bee')
}

if (request.url === '/health') {
response.end(JSON.stringify(health))
}
Expand Down

0 comments on commit 2d98d26

Please sign in to comment.