refactor: 🚨 Use shortand property syntax for object literals

This commit is contained in:
Jesse Wierzbinski 2024-10-03 13:41:58 +02:00
parent 48ffe97849
commit 3fade63567
No known key found for this signature in database
15 changed files with 31 additions and 31 deletions

View file

@ -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",

View file

@ -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 () => {