diff options
Diffstat (limited to 'spec/frontend/registry/explorer/stubs.js')
-rw-r--r-- | spec/frontend/registry/explorer/stubs.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/frontend/registry/explorer/stubs.js b/spec/frontend/registry/explorer/stubs.js index 0e178abfbed..d3518c36c82 100644 --- a/spec/frontend/registry/explorer/stubs.js +++ b/spec/frontend/registry/explorer/stubs.js @@ -1,3 +1,6 @@ +import RealTagsTable from '~/registry/explorer/components/details_page/tags_table.vue'; +import RealDeleteModal from '~/registry/explorer/components/details_page/delete_modal.vue'; + export const GlModal = { template: '<div><slot name="modal-title"></slot><slot></slot><slot name="modal-ok"></slot></div>', methods: { @@ -14,3 +17,21 @@ export const RouterLink = { template: `<div><slot></slot></div>`, props: ['to'], }; + +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'], +}; |