debian-mirror-gitlab/spec/frontend/registry/explorer/stubs.js

38 lines
939 B
JavaScript
Raw Normal View History

2020-06-23 00:09:42 +05:30
import RealTagsTable from '~/registry/explorer/components/details_page/tags_table.vue';
import RealDeleteModal from '~/registry/explorer/components/details_page/delete_modal.vue';
2020-03-13 15:44:24 +05:30
export const GlModal = {
template: '<div><slot name="modal-title"></slot><slot></slot><slot name="modal-ok"></slot></div>',
methods: {
show: jest.fn(),
},
};
export const GlEmptyState = {
template: '<div><slot name="description"></slot></div>',
name: 'GlEmptyStateSTub',
};
2020-05-24 23:13:21 +05:30
export const RouterLink = {
template: `<div><slot></slot></div>`,
props: ['to'],
};
2020-06-23 00:09:42 +05:30
export const TagsTable = {
props: RealTagsTable.props,
template: `<div><slot name="empty"></slot><slot name="loader"></slot></div>`,
};
export const DeleteModal = {
template: '<div></div>',
methods: {
show: jest.fn(),
},
props: RealDeleteModal.props,
};
export const GlSkeletonLoader = {
template: `<div><slot></slot></div>`,
props: ['width', 'height'],
};