Skip to content

Commit a8fb07b

Browse files
committed
fix unit tests
1 parent 88799b6 commit a8fb07b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/documentation.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const app = await init();
55
test("Test getting OpenAPI JSON", async () => {
66
const response = await app.inject({
77
method: "GET",
8-
url: "/api/documentation/json",
8+
url: "/docs/openapi.json",
99
});
1010
expect(response.statusCode).toBe(200);
1111
const responseDataJson = await response.json();
@@ -19,7 +19,7 @@ afterAll(async () => {
1919
test("Test getting OpenAPI UI", async () => {
2020
const response = await app.inject({
2121
method: "GET",
22-
url: "/api/documentation",
22+
url: "/docs",
2323
});
2424
expect(response.statusCode).toBe(200);
2525
const contentType = response.headers["content-type"];

0 commit comments

Comments
 (0)