diff --git a/package.json b/package.json index a44b716..ba08557 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "hexo": "^4.0.0", "mocha": "^6.0.2", "eslint": "^6.0.1", - "eslint-config-hexo": "^3.0.0", + "eslint-config-hexo": "^4.1.0", "nyc": "^14.1.1" }, "dependencies": { diff --git a/test/index.js b/test/index.js index f442da7..a77673a 100644 --- a/test/index.js +++ b/test/index.js @@ -22,7 +22,7 @@ describe('Tag generator', () => { {source: 'bar', slug: 'bar', date: 1e8 + 1}, {source: 'baz', slug: 'baz', date: 1e8 - 1}, {source: 'boo', slug: 'boo', date: 1e8 + 2} - ]).then((data) => { + ]).then(data => { posts = data; return posts[0].setTags(['foo']).then(() => { @@ -137,7 +137,7 @@ describe('Tag generator', () => { const result = generator(locals); - result.map((item) => { + result.map(item => { return item.path; }).should.eql(['tags/foo/', 'tags/foo/yo/2/', 'tags/bar/']); @@ -282,7 +282,7 @@ describe('Tag generator', () => { const result = generator(locals); - result.map((item) => { + result.map(item => { return item.path; }).should.eql(['tags/foo/', 'tags/foo/yo/2/', 'tags/bar/', 'tags/']);