diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-02-10 18:19:14 -0700 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2024-02-13 06:59:44 +0530 |
commit | 7584d2d7a7110aef0331ebfa178b2295842c59fa (patch) | |
tree | 900cd71237e6231b57936fcce77ff229cd459041 /tests/functional/api/static/news.spec.ts | |
parent | upgrade recipes submodule (diff) | |
download | ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.gz ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.zst ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.zip |
refactor: project maintenance
- work in progress
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 8f3818f..71b5797 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'; | 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 | }) |