Skip to content

Commit 0caa379

Browse files
committed
Update tests w/ fixed async afterEach behavior
1 parent 00aae7d commit 0caa379

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/e2e/plugins.test.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test.describe('Plugins', () => {
99
'mounted',
1010
'beforeEach-async',
1111
'beforeEach',
12-
// 'afterEach-async',
12+
'afterEach-async',
1313
'afterEach',
1414
'doneEach',
1515
'ready',
@@ -41,13 +41,12 @@ test.describe('Plugins', () => {
4141
return markdown;
4242
});
4343

44-
// FIXME: https://github.com/docsifyjs/docsify/issues/449
45-
// hook.afterEach(function (html, next) {
46-
// setTimeout(function () {
47-
// console.log('afterEach-async');
48-
// next(html);
49-
// }, 100);
50-
// });
44+
hook.afterEach(function (html, next) {
45+
setTimeout(function () {
46+
console.log('afterEach-async');
47+
next(html);
48+
}, 100);
49+
});
5150

5251
hook.afterEach(function (html) {
5352
console.log('afterEach');

0 commit comments

Comments
 (0)