We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6430a34 commit caa5aaaCopy full SHA for caa5aaa
test/scripts/filters/meta_generator.js
@@ -22,4 +22,14 @@ describe('Meta Generator', () => {
22
const resultType = typeof result;
23
resultType.should.eql('undefined');
24
});
25
+
26
+ it('no duplicate generator tag', () => {
27
+ const content = '<head><title>foo</title>'
28
+ + '<meta name="generator" content="foo"></head>';
29
+ hexo.config.meta_generator = true;
30
+ const result = metaGenerator(content);
31
32
+ const resultType = typeof result;
33
+ resultType.should.eql('undefined');
34
+ });
35
0 commit comments