Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pipeline_schedules_form_spec.js « components « pipeline_schedules « ci « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e5d9b378a429384546f4fb7850d8d7fdbdc3a06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { shallowMount } from '@vue/test-utils';
import { GlForm } from '@gitlab/ui';
import PipelineSchedulesForm from '~/ci/pipeline_schedules/components/pipeline_schedules_form.vue';

describe('Pipeline schedules form', () => {
  let wrapper;

  const createComponent = () => {
    wrapper = shallowMount(PipelineSchedulesForm);
  };

  const findForm = () => wrapper.findComponent(GlForm);

  beforeEach(() => {
    createComponent();
  });

  afterEach(() => {
    wrapper.destroy();
  });

  it('displays form', () => {
    expect(findForm().exists()).toBe(true);
  });
});