diff --git a/lib/plugins/helper/meta_generator.js b/lib/plugins/helper/meta_generator.js index 590d6c8d95..20b7613939 100755 --- a/lib/plugins/helper/meta_generator.js +++ b/lib/plugins/helper/meta_generator.js @@ -1,7 +1,7 @@ 'use strict'; function metaGeneratorHelper() { - return ``; + return ``; } module.exports = metaGeneratorHelper; diff --git a/test/scripts/helpers/meta_generator.js b/test/scripts/helpers/meta_generator.js index b08cc94f11..98d7b75175 100755 --- a/test/scripts/helpers/meta_generator.js +++ b/test/scripts/helpers/meta_generator.js @@ -7,6 +7,10 @@ describe('meta_generator', () => { const metaGeneratorHelper = require('../../../lib/plugins/helper/meta_generator').bind(hexo); it('default', () => { - metaGeneratorHelper().should.eql(``); + const { version } = hexo; + const versionType = typeof version; + + versionType.should.not.eql('undefined'); + metaGeneratorHelper().should.eql(``); }); });