Skip to content

Commit e54c834

Browse files
committed
Fix dates to be in the past
1 parent be0769e commit e54c834

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mocks/notes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { type Note, type PrismaClient } from '@prisma/client'
22

33
export const createNotes: () => Note[] = () => {
44
// Fixed dates for consistent screenshots
5-
const date = new Date('2024-04-18T12:24:02Z')
6-
const otherDate = new Date('2024-04-19T15:22:04Z')
5+
const date = new Date('2024-04-12T12:24:02Z')
6+
const otherDate = new Date('2024-04-13T12:24:02Z')
77
return [
88
{
99
id: 1,
@@ -21,7 +21,7 @@ export const createNotes: () => Note[] = () => {
2121
createdAt: otherDate,
2222
updatedAt: otherDate,
2323
},
24-
]
24+
] as const
2525
}
2626

2727
export const seed = async (db: PrismaClient) => {

0 commit comments

Comments
 (0)