Skip to content

Commit

Permalink
refactor(test-models-page): destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Dec 31, 2019
1 parent 7136e18 commit 33f7084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/scripts/models/page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const pathFn = require('path');
const { join } = require('path');
const { deepMerge, full_url_for } = require('hexo-util');

describe('Page', () => {
Expand Down Expand Up @@ -112,7 +112,7 @@ describe('Page', () => {
source: 'foo',
path: 'bar'
});
data.full_source.should.eql(pathFn.join(hexo.source_dir, data.source));
data.full_source.should.eql(join(hexo.source_dir, data.source));

Page.removeById(data._id);
});
Expand Down

0 comments on commit 33f7084

Please sign in to comment.