Adjust tests for async interface

This commit is contained in:
Bán Dénes 2021-07-15 22:03:03 +02:00
parent 1cb9fdc3c2
commit bc7578199d
3 changed files with 12 additions and 12 deletions

View file

@ -8,8 +8,8 @@ const a = require('./assert')
const kle = require('./kle')
exports.interpret = (raw, logger) => {
let config
let format
let config = raw
let format = 'OBJ'
if (a.type(raw)() != 'object') {
try {
config = yaml.safeLoad(raw)