mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Add interface to view post and user JSON data
This commit is contained in:
parent
342a8011f1
commit
db37510370
21 changed files with 248 additions and 122 deletions
|
|
@ -172,7 +172,7 @@ describe("API Tests", () => {
|
|||
expect(account.statuses_count).toBe(0);
|
||||
expect(account.note).toBe("");
|
||||
expect(account.url).toBe(
|
||||
new URL(`/users/${user.id}`, config.http.base_url).toString(),
|
||||
new URL(`/@${user.username}`, config.http.base_url).toString(),
|
||||
);
|
||||
expect(account.avatar).toBeDefined();
|
||||
expect(account.avatar_static).toBeDefined();
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ describe("POST /api/v1/apps/", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("POST /auth/login/", () => {
|
||||
describe("POST /api/auth/login/", () => {
|
||||
test("should get a code", async () => {
|
||||
const formData = new FormData();
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ describe("POST /auth/login/", () => {
|
|||
const response = await sendTestRequest(
|
||||
new Request(
|
||||
wrapRelativeUrl(
|
||||
`/auth/login/?client_id=${client_id}&redirect_uri=https://example.com&response_type=code&scope=read+write`,
|
||||
`/api/auth/login/?client_id=${client_id}&redirect_uri=https://example.com&response_type=code&scope=read+write`,
|
||||
base_url,
|
||||
),
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue