Integration test: Parse dates as string (#1305)

This commit is contained in:
Tomas Della Vedova
2020-09-14 11:51:11 +02:00
committed by GitHub
parent 147ec0155d
commit d6d7aeffb3

View File

@ -288,8 +288,9 @@ function now () {
}
function parse (data) {
const schema = yaml.Schema.create(yaml.CORE_SCHEMA, [])
try {
var doc = yaml.safeLoad(data)
var doc = yaml.safeLoad(data, { schema })
} catch (err) {
console.error(err)
return