summaryrefslogtreecommitdiff
path: root/spec/frontend/registry/list/components/project_empty_state_spec.js
blob: bd717a4eb106e53404a26322af76a225de793ea4 (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 { mount } from '@vue/test-utils';
import projectEmptyState from '~/registry/list/components/project_empty_state.vue';

describe('Registry Project Empty state', () => {
  let wrapper;

  beforeEach(() => {
    wrapper = mount(projectEmptyState, {
      attachToDocument: true,
      sync: false,
      propsData: {
        noContainersImage: 'imageUrl',
        helpPagePath: 'help',
        repositoryUrl: 'url',
        twoFactorAuthHelpLink: 'help_link',
        personalAccessTokensHelpLink: 'personal_token',
        registryHostUrlWithPort: 'host',
      },
    });
  });

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

  it('to match the default snapshot', () => {
    expect(wrapper.element).toMatchSnapshot();
  });
});