first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import BaseButton from './_base-button.vue'
|
||||
|
||||
describe('@components/_base-button', () => {
|
||||
it('renders its content', () => {
|
||||
const slotContent = '<span>foo</span>'
|
||||
const { element } = shallowMount(BaseButton, {
|
||||
slots: {
|
||||
default: slotContent,
|
||||
},
|
||||
})
|
||||
expect(element.innerHTML).toContain(slotContent)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user