aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/health.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/health.spec.ts')
-rw-r--r--tests/functional/health.spec.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/health.spec.ts b/tests/functional/health.spec.ts
new file mode 100644
index 0000000..2f7e074
--- /dev/null
+++ b/tests/functional/health.spec.ts
@@ -0,0 +1,13 @@
1import { test } from '@japa/runner';
2
3test.group('health page', () => {
4 test('returns a 200 response', async ({ client }) => {
5 const response = await client.get('/health');
6
7 response.assertStatus(200);
8 response.assertBodyContains({
9 api: 'success',
10 db: 'success',
11 });
12 });
13});