Skip to content

Commit 67d7923

Browse files
authored
test: adapt to #109 & fix an error (#113)
1 parent 59aeb87 commit 67d7923

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ describe('Index generator', () => {
133133
result[1].path.should.eql('yo/2/');
134134
result[2].path.should.eql('yo/3/');
135135

136+
// Restore config
137+
hexo.config.pagination_dir = 'page';
136138
});
137139

138140
it('custom pagination_dir - plugin setting', () => {
@@ -145,8 +147,5 @@ describe('Index generator', () => {
145147
result[1].path.should.eql('yoyo/2/');
146148
result[2].path.should.eql('yoyo/3/');
147149

148-
// Restore config
149-
hexo.config.index_generator.per_page = 10;
150-
hexo.config.index_generator.pagination_dir = 'page';
151150
});
152151
});

0 commit comments

Comments
 (0)