From 554ca6521ff0ad9b834123196ebbe3a4bfda2bae Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Sat, 27 Jan 2018 23:24:28 -0500 Subject: [PATCH] Avoid object rest spread MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (we don’t have babel configured for it) --- spec/worker-helpers-spec.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spec/worker-helpers-spec.js b/spec/worker-helpers-spec.js index 85cd61b0..d1869a81 100644 --- a/spec/worker-helpers-spec.js +++ b/spec/worker-helpers-spec.js @@ -13,12 +13,14 @@ const globalNodePath = process.platform === 'win32' ? getFixturesPath('global-eslint') function createConfig(overrides = {}) { - return { - ...overrides, - global: { ...overrides.global }, - disabling: { ...overrides.disabling }, - advanced: { ...overrides.advanced }, - } + return Object.assign( + {}, + overrides, + { global: Object.assign({}, overrides.global) }, + { autofix: Object.assign({}, overrides.autofix) }, + { disabling: Object.assign({}, overrides.disabling) }, + { advanced: Object.assign({}, overrides.advanced) }, + ) } describe('Worker Helpers', () => {