Use localVue to squash missing custom element error

This commit is contained in:
Patrick Smith
2018-11-27 11:00:51 -05:00
parent fd6b0f9b24
commit 178892c62e
2 changed files with 6 additions and 2 deletions

View File

@@ -1,11 +1,15 @@
import { shallowMount } from '@vue/test-utils'
import { createLocalVue, shallowMount } from '@vue/test-utils'
import VTooltip from 'v-tooltip'
import ConfirmationPopover from '../confirmation_popover'
const localVue = createLocalVue()
localVue.use(VTooltip)
describe('ConfirmationPopover', () => {
it('matches snapshot', () => {
const wrapper = shallowMount(ConfirmationPopover, {
localVue,
propsData: {
action: '/some-url',
btn_text: 'Do something dangerous',