aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/api/static/news.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/api/static/news.spec.ts')
-rw-r--r--tests/functional/api/static/news.spec.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/api/static/news.spec.ts b/tests/functional/api/static/news.spec.ts
new file mode 100644
index 0000000..8f3818f
--- /dev/null
+++ b/tests/functional/api/static/news.spec.ts
@@ -0,0 +1,11 @@
1import { test } from '@japa/runner';
2import { apiVersion } from '../../../config';
3
4test.group('API / Static / News', () => {
5 test('returns a 200 response with empty array', async ({ client }) => {
6 const response = await client.get(`/${apiVersion}/news`);
7
8 response.assertStatus(200);
9 response.assertBody([]);
10 });
11});