MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / toIso

Function toIso

lib/plugin/junitReporter.js:292–295  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

290}
291
292function toIso(value) {
293 const date = value ? new Date(value) : new Date()
294 return Number.isNaN(date.getTime()) ? new Date().toISOString() : date.toISOString()
295}
296
297function cleanText(text) {
298 return String(text == null ? '' : text).replace(INVALID_XML_CHARS, '')

Callers 1

buildXmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected