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

runner_detail_app_spec.js « runner_detail « runner « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5caa37c8cb354489967258d3e0c9f7dc39609b35 (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
26
27
28
29
import { shallowMount } from '@vue/test-utils';
import RunnerDetailsApp from '~/runner/runner_details/runner_details_app.vue';

const mockRunnerId = '55';

describe('RunnerDetailsApp', () => {
  let wrapper;

  const createComponent = (props) => {
    wrapper = shallowMount(RunnerDetailsApp, {
      propsData: {
        runnerId: mockRunnerId,
        ...props,
      },
    });
  };

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

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

  it('displays the runner id', () => {
    expect(wrapper.text()).toContain('Runner #55');
  });
});