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

app_spec.js « branch_rules « repository « settings « projects « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e12c3aeedd6f0d9bad321ec77e28cec2c6588c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { mountExtended } from 'helpers/vue_test_utils_helper';
import BranchRules from '~/projects/settings/repository/branch_rules/app.vue';

describe('Branch rules app', () => {
  let wrapper;

  const createComponent = () => {
    wrapper = mountExtended(BranchRules);
  };

  const findTitle = () => wrapper.find('strong');

  beforeEach(() => createComponent());

  it('renders a title', () => {
    expect(findTitle().text()).toBe('Branch');
  });
});