Skip to content

Commit

Permalink
refactor(test-models-category): native Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Dec 31, 2019
1 parent c2941cb commit c842672
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/scripts/models/category.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const Promise = require('bluebird');
const { full_url_for } = require('hexo-util');
const { deepMerge, full_url_for } = require('hexo-util');

describe('Category', () => {
const Hexo = require('../../../lib/hexo');
Expand All @@ -14,7 +13,7 @@ describe('Category', () => {
before(() => hexo.init());

beforeEach(() => {
hexo.config = Object.assign({}, defaults);
hexo.config = deepMerge({}, defaults);
});

it('name - required', async () => {
Expand Down

0 comments on commit c842672

Please sign in to comment.