aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/api/static/news.spec.ts
blob: 8f3818f71436e26087ad2609d6fd2e600c3d5918 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { test } from '@japa/runner';
import { apiVersion } from '../../../config';

test.group('API / Static / News', () => {
  test('returns a 200 response with empty array', async ({ client }) => {
    const response = await client.get(`/${apiVersion}/news`);

    response.assertStatus(200);
    response.assertBody([]);
  });
});