diff --git a/test/scripts/helpers/meta_generator.js b/test/scripts/helpers/meta_generator.js index c6c75b5ed5..98d7b75175 100755 --- a/test/scripts/helpers/meta_generator.js +++ b/test/scripts/helpers/meta_generator.js @@ -7,7 +7,7 @@ describe('meta_generator', () => { const metaGeneratorHelper = require('../../../lib/plugins/helper/meta_generator').bind(hexo); it('default', () => { - const version = hexo.env.version; + const { version } = hexo; const versionType = typeof version; versionType.should.not.eql('undefined');