aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/health.spec.ts
blob: 2f7e074b0638c8904d87cc915eb4f6b0c9ce908a (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',
    });
  });
});