From c250fbf60c05817652ff3ad431f279f2e107b9ad Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 22 Feb 2020 18:59:40 +0800 Subject: [PATCH] test: update popover --- build/config.js | 2 +- components/popover/__tests__/index.test.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build/config.js b/build/config.js index b0712187d..cf9d0776c 100644 --- a/build/config.js +++ b/build/config.js @@ -1,5 +1,5 @@ module.exports = { dev: { - componentName: 'popconfirm', // dev components + componentName: 'popover', // dev components }, }; diff --git a/components/popover/__tests__/index.test.js b/components/popover/__tests__/index.test.js index 8b8d4e649..5bdf80fc5 100644 --- a/components/popover/__tests__/index.test.js +++ b/components/popover/__tests__/index.test.js @@ -1,8 +1,10 @@ import { mount } from '@vue/test-utils'; import { asyncExpect } from '@/tests/utils'; import Popover from '..'; +import mountTest from '../../../tests/shared/mountTest'; describe('Popover', () => { + mountTest(Popover); it('should show overlay when trigger is clicked', async () => { const popover = mount( {