Skip to content

Commit a845fa6

Browse files
vladimyragnivade
authored andcommitted
Make index tests wait for async setup to get finished 🚑
1 parent 3793739 commit a845fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const pages = [
2525

2626
describe('Index building', () => {
2727
beforeEach(() => {
28-
index.rebuildPagesIndex();
2928
sinon.stub(fs, 'readJson').rejects('dummy error');
3029
sinon.stub(fs, 'writeJson').resolves('');
30+
return index.rebuildPagesIndex();
3131
});
3232

3333
describe('failure', () => {

0 commit comments

Comments
 (0)