Skip to content

Commit

Permalink
test: add test for meta_generator option
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Aug 6, 2019
1 parent f5d8f6a commit 5d592cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/scripts/filters/meta_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ describe('Meta Generator', () => {
const resultType = typeof result;
resultType.should.eql('undefined');
});

it('disable meta_generator', () => {
const content = '<head><link></head>';
hexo.config.meta_generator = false;
const result = metaGenerator(content);

const resultType = typeof result;
resultType.should.eql('undefined');
});
});

0 comments on commit 5d592cc

Please sign in to comment.