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

index_spec.js « pages « harbor_registry « packages_and_registries « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 55fc8066f658c6f327b61f49b67a792cffcccbb6 (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
import { shallowMount } from '@vue/test-utils';
import component from '~/packages_and_registries/harbor_registry/pages/index.vue';

describe('List Page', () => {
  let wrapper;

  const findRouterView = () => wrapper.find({ ref: 'router-view' });

  const mountComponent = () => {
    wrapper = shallowMount(component, {
      stubs: {
        RouterView: true,
      },
    });
  };

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

  it('has a router view', () => {
    expect(findRouterView().exists()).toBe(true);
  });
});