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

43 lines
922 B
JavaScript
Raw Normal View History

2020-06-23 00:09:42 +05:30
import RealDeleteModal from '~/registry/explorer/components/details_page/delete_modal.vue';
2020-11-24 15:15:51 +05:30
import RealListItem from '~/vue_shared/components/registry/list_item.vue';
2020-06-23 00:09:42 +05:30
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 DeleteModal = {
template: '<div></div>',
methods: {
show: jest.fn(),
},
props: RealDeleteModal.props,
};
export const GlSkeletonLoader = {
template: `<div><slot></slot></div>`,
props: ['width', 'height'],
};
2020-07-28 23:09:34 +05:30
export const ListItem = {
...RealListItem,
data() {
return {
detailsSlots: [],
isDetailsShown: true,
};
},
};