🌐 AI搜索 & 代理 主页
Skip to content

Commit de1cb20

Browse files
authored
Update tooltip.spec.js
1 parent b763a9b commit de1cb20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/tooltip/tooltip.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ describe('b-tooltip', () => {
267267
localVue: localVue,
268268
propsData: {
269269
triggers: 'focus',
270-
show: false
270+
show: false,
271+
delay: 0
271272
},
272273
slots: {
273274
default: 'title'
@@ -323,9 +324,9 @@ describe('b-tooltip', () => {
323324
$button.trigger('focusout', { relatedTarget: document.body })
324325
await waitNT(wrapper.vm)
325326
await waitRAF()
327+
jest.runOnlyPendingTimers()
326328
await waitNT(wrapper.vm)
327329
await waitRAF()
328-
jest.runOnlyPendingTimers()
329330
await waitNT(wrapper.vm)
330331
await waitRAF()
331332

0 commit comments

Comments
 (0)