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

@ -33,9 +33,9 @@ const cap = s => s.charAt(0).toUpperCase() + s.slice(1)
const test = function(input_path) {
this.timeout(120000)
title = path.basename(input_path, '.yaml').split('_').join(' ')
it(title, function() {
it(title, async function() {
const input = yaml.load(fs.readFileSync(input_path).toString())
const actual = ergogen.process(input, true)
const actual = await ergogen.process(input, true)
// if we're just creating the reference, we can dump the current output
if (dump) {