Skip to content

Commit

Permalink
test: adapt to #109 & fix an error (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
uiolee authored Jul 9, 2024
1 parent 59aeb87 commit 67d7923
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ describe('Index generator', () => {
result[1].path.should.eql('yo/2/');
result[2].path.should.eql('yo/3/');

// Restore config
hexo.config.pagination_dir = 'page';
});

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

// Restore config
hexo.config.index_generator.per_page = 10;
hexo.config.index_generator.pagination_dir = 'page';
});
});

0 comments on commit 67d7923

Please sign in to comment.