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

@ -15,8 +15,8 @@ beforeAll(async () => {
await db
.insert(Applications)
.values({
clientId: clientId,
redirectUri: redirectUri,
clientId,
redirectUri,
scopes: scope,
name: "Test Application",
secret,
@ -26,8 +26,8 @@ beforeAll(async () => {
await db.insert(Tokens).values({
code: "test-code",
redirectUri: redirectUri,
clientId: clientId,
redirectUri,
clientId,
accessToken: "test-access-token",
expiresAt: new Date(Date.now() + 3600 * 1000).toISOString(),
createdAt: new Date().toISOString(),

View file

@ -12,8 +12,8 @@ const secret = "test-secret";
beforeAll(async () => {
await db.insert(Applications).values({
clientId: clientId,
redirectUri: redirectUri,
clientId,
redirectUri,
scopes: scope,
name: "Test Application",
secret,
@ -21,8 +21,8 @@ beforeAll(async () => {
await db.insert(Tokens).values({
code: "test-code",
redirectUri: redirectUri,
clientId: clientId,
redirectUri,
clientId,
accessToken: "test-access-token",
expiresAt: new Date(Date.now() + 3600 * 1000).toISOString(),
createdAt: new Date().toISOString(),