Changes from Github AI

This commit is contained in:
Denis Urs Rudolph
2025-12-07 15:01:28 +01:00
parent e11b4a3dc4
commit c70cc79ff4
6 changed files with 75 additions and 8 deletions

View File

@@ -235,7 +235,8 @@ describe('Validation Schemas', () => {
expect(result.data.purchaseDate).toBeInstanceOf(Date)
} else {
// If it's still a string, it should be parseable
expect(new Date(result.data.purchaseDate as string)).toBeInstanceOf(Date)
const parsed = new Date(String(result.data.purchaseDate))
expect(parsed).toBeInstanceOf(Date)
}
}
})