Skip to content

Commit

Permalink
refactor(test-generators-page): arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Dec 14, 2019
1 parent 2c92784 commit cd0b689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/scripts/generators/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ describe('page', () => {
const Page = hexo.model('Page');
const generator = Promise.method(require('../../../lib/plugins/generator/page').bind(hexo));

function locals() {
const locals = () => {
hexo.locals.invalidate();
return hexo.locals.toObject();
}
};

it('default layout', async() => {
const page = await Page.insert({
Expand Down

0 comments on commit cd0b689

Please sign in to comment.