Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed May 9, 2024
1 parent dcf727a commit d982afb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ describe('api', () => {
it('returns 200 when healthy', async () => {
healthzStatusSigningNock()
await request(app)
.get(`/healthz`)
.get('/healthz')
.expect('Content-Type', /json/)
.expect((res) => {
expect(res.body.message).to.contain('ok')
Expand All @@ -244,18 +244,17 @@ describe('api', () => {

describe('/healthz fail', () => {
// to force an error with the health check, we
// simply don't set the nock for the signing and
// simply don't set the nock for the signing and
// status services

it('returns 503 when not healthy', async () => {
await request(app)
.get(`/healthz`)
.get('/healthz')
.expect('Content-Type', /json/)
.expect((res) => {
expect(res.body.error).to.contain('error')
})
.expect(503)
})
})

})
2 changes: 1 addition & 1 deletion src/test-fixtures/nocks/healthz_status_signing.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d982afb

Please sign in to comment.