diff options
author | 2024-02-10 18:37:40 -0700 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | e1c47572a6235fd8fd20af888ac3a11c7ae1369d (patch) | |
tree | 2dccff36a441916d7014037cef3f7ce84a790cad /tests/functional/api/static/news.spec.ts | |
parent | refactor: project maintenance (diff) | |
download | ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.gz ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.zst ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.zip |
updates
Diffstat (limited to 'tests/functional/api/static/news.spec.ts')
-rw-r--r-- | tests/functional/api/static/news.spec.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/functional/api/static/news.spec.ts b/tests/functional/api/static/news.spec.ts index 71b5797..28ca64e 100644 --- a/tests/functional/api/static/news.spec.ts +++ b/tests/functional/api/static/news.spec.ts | |||
@@ -1,11 +1,11 @@ | |||
1 | import { test } from '@japa/runner' | 1 | import { test } from '@japa/runner'; |
2 | import { apiVersion } from '../../../config.js' | 2 | import { apiVersion } from '../../../config.js'; |
3 | 3 | ||
4 | test.group('API / Static / News', () => { | 4 | test.group('API / Static / News', () => { |
5 | test('returns a 200 response with empty array', async ({ client }) => { | 5 | test('returns a 200 response with empty array', async ({ client }) => { |
6 | const response = await client.get(`/${apiVersion}/news`) | 6 | const response = await client.get(`/${apiVersion}/news`); |
7 | 7 | ||
8 | response.assertStatus(200) | 8 | response.assertStatus(200); |
9 | response.assertBody([]) | 9 | response.assertBody([]); |
10 | }) | 10 | }); |
11 | }) | 11 | }); |