mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚨 Use shortand property syntax for object literals
This commit is contained in:
parent
48ffe97849
commit
3fade63567
15 changed files with 31 additions and 31 deletions
|
|
@ -24,7 +24,7 @@ describe(meta.route, () => {
|
|||
"X-Challenge-Solution": await getSolvedChallenge(),
|
||||
},
|
||||
body: JSON.stringify({
|
||||
username: username,
|
||||
username,
|
||||
email: "bob@gamer.com",
|
||||
password: "password",
|
||||
agreement: "true",
|
||||
|
|
@ -44,7 +44,7 @@ describe(meta.route, () => {
|
|||
"X-Challenge-Solution": await getSolvedChallenge(),
|
||||
},
|
||||
body: JSON.stringify({
|
||||
username: username,
|
||||
username,
|
||||
email: "bob",
|
||||
password: "password",
|
||||
agreement: "true",
|
||||
|
|
@ -64,7 +64,7 @@ describe(meta.route, () => {
|
|||
"X-Challenge-Solution": await getSolvedChallenge(),
|
||||
},
|
||||
body: JSON.stringify({
|
||||
username: username,
|
||||
username,
|
||||
email: "contatc@bob.com",
|
||||
agreement: "true",
|
||||
locale: "en",
|
||||
|
|
@ -83,7 +83,7 @@ describe(meta.route, () => {
|
|||
"X-Challenge-Solution": await getSolvedChallenge(),
|
||||
},
|
||||
body: JSON.stringify({
|
||||
username: username,
|
||||
username,
|
||||
email: "contact@george.com",
|
||||
password: "password",
|
||||
agreement: "true",
|
||||
|
|
@ -119,7 +119,7 @@ describe(meta.route, () => {
|
|||
"X-Challenge-Solution": await getSolvedChallenge(),
|
||||
},
|
||||
body: JSON.stringify({
|
||||
username: username,
|
||||
username,
|
||||
email: "contact@george.com",
|
||||
password: "password",
|
||||
agreement: "true",
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ describe(meta.route, () => {
|
|||
|
||||
expect(response2.ok).toBe(true);
|
||||
const emojis = await response2.json();
|
||||
expect(emojis).not.toContainEqual(expect.objectContaining({ id: id }));
|
||||
expect(emojis).not.toContainEqual(expect.objectContaining({ id }));
|
||||
});
|
||||
|
||||
test("should delete the emoji", async () => {
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ export default apiRoute((app) =>
|
|||
|
||||
await db.insert(Tokens).values({
|
||||
accessToken: randomString(64, "base64url"),
|
||||
code: code,
|
||||
code,
|
||||
scope: flow.application.scopes,
|
||||
tokenType: TokenType.Bearer,
|
||||
userId: user.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue