From 12a43ef46535db286cf244ca46c860083ee52ac9 Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Sat, 2 Nov 2019 11:01:36 +0000 Subject: [PATCH] refactor(backtick_code): replace cloneDeep with Object.assign() --- test/scripts/filters/backtick_code_block.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/scripts/filters/backtick_code_block.js b/test/scripts/filters/backtick_code_block.js index 76a70a078f..66fab3c925 100644 --- a/test/scripts/filters/backtick_code_block.js +++ b/test/scripts/filters/backtick_code_block.js @@ -1,7 +1,6 @@ 'use strict'; const util = require('hexo-util'); -const cloneDeep = require('lodash/cloneDeep'); const defaultConfig = require('../../../lib/hexo/default_config'); describe('Backtick code block', () => { @@ -23,7 +22,7 @@ describe('Backtick code block', () => { beforeEach(() => { // Reset config - hexo.config.highlight = cloneDeep(defaultConfig.highlight); + hexo.config.highlight = Object.assign({}, defaultConfig.highlight); }); it('disabled', () => {