diff --git a/package.json b/package.json index f9ae3e1..21a9a55 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "cheerio": "^0.22.0", "eslint": "^8.6.0", "eslint-config-hexo": "^5.0.0", - "hexo": "^6.0.0", + "hexo": "^7.0.0", "mocha": "^10.0.0", "nyc": "^15.1.0" }, diff --git a/test/index.js b/test/index.js index be7a7f4..bf08ecd 100644 --- a/test/index.js +++ b/test/index.js @@ -48,7 +48,7 @@ describe('Feed generator', () => { const Post = hexo.model('Post'); const generator = require('../lib/generator').bind(hexo); - require('../node_modules/hexo/lib/plugins/helper')(hexo); + require('../node_modules/hexo/dist/plugins/helper')(hexo); let posts = {}; let locals = {}; @@ -441,7 +441,7 @@ it('No posts', () => { const Post = hexo.model('Post'); const generator = require('../lib/generator').bind(hexo); - require('../node_modules/hexo/lib/plugins/helper')(hexo); + require('../node_modules/hexo/dist/plugins/helper')(hexo); hexo.config.feed = { type: 'atom',