aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/health.spec.ts
blob: 50bf46c42bc58b7813e543b5472426e97244d6a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { test } from '@japa/runner'

test.group('health page', () => {
  test('returns a 200 response', async ({ client }) => {
    const response = await client.get('/health')

    response.assertStatus(200)
    response.assertBodyContains({
      api: 'success',
      db: 'success',
    })
  })
})