Integration test: Parse dates as string (#1305)
This commit is contained in:
committed by
GitHub
parent
147ec0155d
commit
d6d7aeffb3
@ -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
|
||||
|
||||
Reference in New Issue
Block a user