Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Avoid object rest spread
Browse files Browse the repository at this point in the history
(we don’t have babel configured for it)
  • Loading branch information
IanVS committed Jan 29, 2018
1 parent fdb5de9 commit 554ca65
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spec/worker-helpers-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 554ca65

Please sign in to comment.