diff options
author | Takuya Noguchi <takninnovationresearch@gmail.com> | 2020-08-29 07:21:07 +0300 |
---|---|---|
committer | Takuya Noguchi <takninnovationresearch@gmail.com> | 2020-08-31 10:55:56 +0300 |
commit | 5fc76060c50658cfd0554acfd2c82938cbaa9994 (patch) | |
tree | 179cd7e4480e08557e6e46bf0474b879bda8f5bf /spec/frontend | |
parent | 7ac4cb2124c84c7a423cd8e825f9591a5be5648d (diff) |
Update @gitlab/eslint-config from 1.6.0 to 3.0.0
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Co-authored-by: Simon Knox <psimyn@gmail.com>
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/shared/toc/flatten_items_spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/frontend/shared/toc/flatten_items_spec.js b/spec/frontend/shared/toc/flatten_items_spec.js index b5965d31..704599fa 100644 --- a/spec/frontend/shared/toc/flatten_items_spec.js +++ b/spec/frontend/shared/toc/flatten_items_spec.js @@ -1,7 +1,7 @@ import { flattenItems } from '../../../../content/frontend/shared/toc/flatten_items'; describe('shared/toc/flatten_items', () => { - const createItem = (text, ...items) => Object.assign({ text }, items ? { items } : {}); + const createItem = (text, ...items) => ({ text, items }); const createItemWithLevel = (text, level) => ({ text, level }); it.each` |