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 cad4b87 commit c5e4a45Copy full SHA for c5e4a45
test/scripts/helpers/index.js
@@ -19,6 +19,7 @@ describe('Helpers', () => {
19
require('./list_tags');
20
require('./mail_to');
21
require('./markdown');
22
+ require('./meta_generator');
23
require('./number_format');
24
require('./open_graph');
25
require('./paginator');
test/scripts/helpers/meta_generator.js
@@ -0,0 +1,12 @@
1
+'use strict';
2
+
3
+describe('meta_generator', () => {
4
+ const Hexo = require('../../../lib/hexo');
5
+ const hexo = new Hexo();
6
7
+ const metaGeneratorHelper = require('../../../lib/plugins/helper/meta_generator').bind(hexo);
8
9
+ it('default', () => {
10
+ metaGeneratorHelper().should.eql(`<meta name="generator" content="Hexo ${hexo.version}">`);
11
+ });
12
+});
0 commit comments