Skip to content

Commit

Permalink
Update tests w/ fixed async afterEach behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Mar 15, 2022
1 parent 00aae7d commit 0caa379
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/e2e/plugins.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.describe('Plugins', () => {
'mounted',
'beforeEach-async',
'beforeEach',
// 'afterEach-async',
'afterEach-async',
'afterEach',
'doneEach',
'ready',
Expand Down Expand Up @@ -41,13 +41,12 @@ test.describe('Plugins', () => {
return markdown;
});

// FIXME: https://github.com/docsifyjs/docsify/issues/449
// hook.afterEach(function (html, next) {
// setTimeout(function () {
// console.log('afterEach-async');
// next(html);
// }, 100);
// });
hook.afterEach(function (html, next) {
setTimeout(function () {
console.log('afterEach-async');
next(html);
}, 100);
});

hook.afterEach(function (html) {
console.log('afterEach');
Expand Down

0 comments on commit 0caa379

Please sign in to comment.