From 12f377142a361b905f00606c5fcaccda6b7b3e5d Mon Sep 17 00:00:00 2001 From: Suzanne Selhorn Date: Thu, 29 Oct 2020 05:41:07 +0000 Subject: Removed line above help Related to: https://gitlab.com/gitlab-org/gitlab-docs/-/issues/866 --- .../__snapshots__/table_of_contents_spec.js.snap | 32 ++++++---------------- .../components/table_of_contents_list_spec.js | 29 -------------------- 2 files changed, 8 insertions(+), 53 deletions(-) (limited to 'spec/frontend/default/components') diff --git a/spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap b/spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap index 37c9400b..3be5a882 100644 --- a/spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap +++ b/spec/frontend/default/components/__snapshots__/table_of_contents_spec.js.snap @@ -43,9 +43,7 @@ exports[`frontend/default/components/table_of_contents matches snapshot 1`] = ` class="nav nav-pills flex-column my-0" data-testid="main-list" > -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • { const findItemsData = () => parseTOC(wrapper.element); const findLinks = () => wrapper.findAll('a'); - const findListItems = () => wrapper.findAll('li'); afterEach(() => { wrapper.destroy(); @@ -88,32 +87,4 @@ describe('frontend/default/components/table_of_contents_list', () => { }); }); }); - - describe('with separator', () => { - beforeEach(() => { - createComponent({ - items: [ - { - text: 'Lorem', - }, - { - text: 'Ipsum', - withSeparator: true, - }, - ], - }); - }); - - it('has separator class for separator item', () => { - const data = findListItems().wrappers.map((x) => ({ - text: x.text(), - hasSeparator: x.classes('toc-separator'), - })); - - expect(data).toEqual([ - { text: 'Lorem', hasSeparator: false }, - { text: 'Ipsum', hasSeparator: true }, - ]); - }); - }); }); -- cgit v1.2.3