Skip to content

Commit e6c6545

Browse files
committed
fix test
1 parent 2bd55ac commit e6c6545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime/test/client-api/type-coverage.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ describe.each(['sqlite', 'postgresql'] as const)('zmodel type coverage tests', (
6767
{ provider, dbName: PG_DB_NAME },
6868
);
6969

70-
await db.foo.create({ data: {} });
70+
await db.foo.create({ data: { id: '1' } });
7171
await expect(db.foo.findUnique({ where: { id: '1' } })).resolves.toMatchObject({
7272
String: 'default',
7373
Int: 100,
7474
BigInt: BigInt(9007199254740991),
75-
DateTime: new Date('2021-01-01T00:00:00.000Z'),
75+
DateTime: expect.any(Date),
7676
Float: 1.23,
7777
Decimal: new Decimal(1.2345),
7878
Boolean: true,

0 commit comments

Comments
 (0)