[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:
committed by
GitHub
parent
d3ec4db890
commit
99717dce73
@ -282,8 +282,9 @@ function now () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function parse (data) {
|
function parse (data) {
|
||||||
|
const schema = yaml.Schema.create(yaml.CORE_SCHEMA, [])
|
||||||
try {
|
try {
|
||||||
var doc = yaml.safeLoad(data)
|
var doc = yaml.safeLoad(data, { schema })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user