mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 02:11:25 +01:00
faker: render Date outputs as ISO strings
This commit is contained in:
@@ -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