Skip to content

Commit

Permalink
test(open_generator): test existing generator tag
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Aug 11, 2019
1 parent c2bc3da commit fb42a5b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/scripts/filters/meta_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,14 @@ describe('Meta Generator', () => {
const resultType = typeof result;
resultType.should.eql('undefined');
});

it('no duplicate generator tag', () => {
const content = '<head><title>foo</title>'
+ '<meta name="generator" content="foo"></head>';
hexo.config.meta_generator = true;
const result = metaGenerator(content);

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

0 comments on commit fb42a5b

Please sign in to comment.