mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor(database): 🚚 Rename Application to Client everywhere
This commit is contained in:
parent
6f97903f3b
commit
1a0a27bee1
25 changed files with 2549 additions and 90 deletions
|
|
@ -13,10 +13,10 @@ afterAll(async () => {
|
|||
});
|
||||
|
||||
describe("Login flow", () => {
|
||||
test("should create an application", async () => {
|
||||
test("should create a client", async () => {
|
||||
const client = await generateClient(users[0]);
|
||||
|
||||
const { ok, data } = await client.createApp("Test Application", {
|
||||
const { ok, data } = await client.createApp("Test Client", {
|
||||
redirect_uris: "https://example.com",
|
||||
website: "https://example.com",
|
||||
scopes: ["read", "write"],
|
||||
|
|
@ -24,7 +24,7 @@ describe("Login flow", () => {
|
|||
|
||||
expect(ok).toBe(true);
|
||||
expect(data).toEqual({
|
||||
name: "Test Application",
|
||||
name: "Test Client",
|
||||
website: "https://example.com",
|
||||
client_id: expect.any(String),
|
||||
client_secret: expect.any(String),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue