Skip to content

Commit 8ac4d0b

Browse files
committed
misc fixes
1 parent 7b0c9aa commit 8ac4d0b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/server/test/api/rpc.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,7 @@ describe('RPC API Handler Tests', () => {
284284
});
285285

286286
it('validation error', async () => {
287-
let handleRequest = makeHandler();
288-
289-
handleRequest = makeHandler();
287+
const handleRequest = makeHandler();
290288

291289
let r = await handleRequest({
292290
method: 'get',

packages/server/test/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import superjson from 'superjson';
33
export const schema = `
44
model User {
55
id String @id @default(cuid())
6-
createdAt DateTime @default (now())
6+
createdAt DateTime @default(now())
77
updatedAt DateTime @updatedAt
88
email String @unique @email
99
posts Post[]
@@ -14,7 +14,7 @@ model User {
1414
1515
model Post {
1616
id String @id @default(cuid())
17-
createdAt DateTime @default (now())
17+
createdAt DateTime @default(now())
1818
updatedAt DateTime @updatedAt
1919
title String
2020
author User? @relation(fields: [authorId], references: [id])

0 commit comments

Comments
 (0)