[Backport 7.x] Integration test: Parse dates as string (#1307)

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2020-09-14 11:56:20 +02:00
committed by GitHub
parent d3ec4db890
commit 99717dce73

View File

@ -282,8 +282,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