Skip to content

Commit 837d04a

Browse files
committed
fix(test): fix HTML logging
1 parent a3c3359 commit 837d04a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/helpers/docsify-init.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,13 @@ async function docsifyInit(options = {}) {
363363
}
364364

365365
if (htmlArr.length) {
366-
htmlArr.forEach(html => {
366+
for (let html of htmlArr) {
367367
if (settings._logHTML.format !== false) {
368-
html = prettier.format(html, { parser: 'html' });
368+
html = await prettier.format(html, { parser: 'html' });
369369
}
370370

371371
console.log(html);
372-
});
372+
}
373373
} else {
374374
console.warn(`docsify-init(): unable to match selector '${selector}'`);
375375
}

0 commit comments

Comments
 (0)