mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09: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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue