Skip to content

Commit 943c953

Browse files
committed
fix tests
1 parent 05f48ee commit 943c953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/tests/enhancements/with-delegate/policy-interaction.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ describe('Polymorphic Policy Test', () => {
400400
const deleteRead = await db.asset.delete({ where: { id: post.id } });
401401
expect(deleteRead.value).toBe(2);
402402
// cannot read back sub model
403-
expect(updateRead.title).toBeUndefined();
403+
expect(deleteRead.title).toBeUndefined();
404404
// actually deleted
405405
await expect(prisma.asset.findUnique({ where: { id: post.id } })).toResolveFalsy();
406406
await expect(prisma.post.findUnique({ where: { id: post.id } })).toResolveFalsy();
@@ -478,7 +478,7 @@ describe('Polymorphic Policy Test', () => {
478478
const deleteRead = await db.asset.delete({ where: { id: post.id } });
479479
expect(deleteRead.value).toBe(2);
480480
// cannot read back sub model
481-
expect(updateRead.title).toBeUndefined();
481+
expect(deleteRead.title).toBeUndefined();
482482
// actually deleted
483483
await expect(prisma.asset.findUnique({ where: { id: post.id } })).toResolveFalsy();
484484
await expect(prisma.post.findUnique({ where: { id: post.id } })).toResolveFalsy();

0 commit comments

Comments
 (0)