feat: 50% almost code coverage

This commit is contained in:
Agusti Fernandez Pardo
2022-03-26 05:28:53 +01:00
parent 9233f143c6
commit 7998e8fc2c
25 changed files with 393 additions and 72 deletions
+5
View File
@@ -1,3 +1,8 @@
export const stringifyISODate = (date: Date|undefined): string => {
return `${date?.toISOString()}`
}
export const autoStringifyDateValues = ([key, value]: [string, unknown]): [string, unknown] => {
console.log(key,value)
return [key, typeof value === "object" && value instanceof Date ? stringifyISODate(value) : value]
}