2024-04-15 07:08:16 +02:00
|
|
|
import { describe, expect, test } from "bun:test";
|
2025-06-15 22:17:33 +02:00
|
|
|
import { generateClient } from "@versia-server/tests";
|
2024-04-15 07:08:16 +02:00
|
|
|
|
|
|
|
|
// /api/v1/instance/extended_description
|
2024-12-30 20:18:48 +01:00
|
|
|
describe("/api/v1/instance/extended_description", () => {
|
2024-04-15 07:08:16 +02:00
|
|
|
test("should return extended description", async () => {
|
2025-03-22 17:32:46 +01:00
|
|
|
await using client = await generateClient();
|
2024-04-15 07:08:16 +02:00
|
|
|
|
2025-03-22 17:32:46 +01:00
|
|
|
const { data, ok } = await client.getInstanceExtendedDescription();
|
2024-04-15 07:08:16 +02:00
|
|
|
|
2025-03-22 17:32:46 +01:00
|
|
|
expect(ok).toBe(true);
|
|
|
|
|
expect(data).toEqual({
|
2025-02-15 02:47:29 +01:00
|
|
|
updated_at: new Date(0).toISOString(),
|
2024-04-15 07:08:16 +02:00
|
|
|
content:
|
2024-08-19 15:16:01 +02:00
|
|
|
'<p>This is a <a href="https://versia.pub">Versia</a> server with the default extended description.</p>\n',
|
2024-04-15 07:08:16 +02:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|