Skip to content

Commit b242103

Browse files
committed
tests: remove unregistered component warning
1 parent 56fa4f2 commit b242103

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/unit/QuanthubModal.spec.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mount } from './testHelper'
22

33
import QuanthubModal from '@/components/shared/QuanthubModal.vue'
4-
4+
import QuanthubCloseIcon from '@/components/shared/icons/QuanthubCloseIcon.vue'
55
import QuanthubSpinner from '@/components/shared/QuanthubSpinner.vue'
66
import { describe, expect, it, beforeEach } from 'vitest'
77

@@ -49,7 +49,10 @@ describe('QuanthubModal.vue', () => {
4949
const buildModalWrapper = (props = {}) => {
5050
return mount(QuanthubModal, {
5151
props: { ...props, visible: true },
52-
components: { 'quanthub-spinner': QuanthubSpinner },
52+
components: {
53+
'quanthub-spinner': QuanthubSpinner,
54+
'quanthub-close-icon': QuanthubCloseIcon,
55+
},
5356
slots: {
5457
'modal-header': '<div data-testid="header-div">Heading</div>',
5558
},
@@ -92,7 +95,7 @@ describe('QuanthubModal.vue', () => {
9295
return mount(QuanthubModal, {
9396
props: { ...props, visible: true },
9497
slots: {
95-
'modal-footer': `<div data-testid="footer-div">
98+
'modal-footer': `<div data-testid="footer-div">
9699
<button data-testid="ok-btn"> OK </button>
97100
<button data-testid="cancel-btn"> Cancel </button>
98101
</div>`,

0 commit comments

Comments
 (0)