mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-22 16:24:11 +01:00
faker: render Date outputs as ISO strings
This commit is contained in:
1 parent
c62db7be06
commit
f5727b28c4
2 files changed
+15
No files matched your search
@@ -29,6 +29,7 @@ const modules = [
|
||||
|
||||
function normalizeResult(result: unknown): string {
|
||||
if (typeof result === 'string') return result;
|
||||
if (result instanceof Date) return result.toISOString();
|
||||
return JSON.stringify(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user