test: update popover

pull/1845/head
tangjinzhou 2020-02-22 18:59:40 +08:00
parent e7d935cfac
commit c250fbf60c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
module.exports = { module.exports = {
dev: { dev: {
componentName: 'popconfirm', // dev components componentName: 'popover', // dev components
}, },
}; };

View File

@ -1,8 +1,10 @@
import { mount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import { asyncExpect } from '@/tests/utils'; import { asyncExpect } from '@/tests/utils';
import Popover from '..'; import Popover from '..';
import mountTest from '../../../tests/shared/mountTest';
describe('Popover', () => { describe('Popover', () => {
mountTest(Popover);
it('should show overlay when trigger is clicked', async () => { it('should show overlay when trigger is clicked', async () => {
const popover = mount( const popover = mount(
{ {