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

Commit 14bf4f4

Browse files
committed
Update avatar-group.spec.js
1 parent d88c083 commit 14bf4f4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/components/avatar/avatar-group.spec.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { mount } from '@vue/test-utils'
2-
import { BAvatarGroup } from './avatar-group'
32
import { waitNT } from '../../../tests/utils'
3+
import { BAvatarGroup } from './avatar-group'
44

55
describe('avatar-group', () => {
66
it('should have expected default structure', async () => {
77
const wrapper = mount(BAvatarGroup)
8-
expect(wrapper.isVueInstance()).toBe(true)
8+
9+
expect(wrapper.vm).toBeDefined()
910
await waitNT(wrapper.vm)
1011

1112
expect(wrapper.is('div')).toBe(true)
@@ -22,7 +23,8 @@ describe('avatar-group', () => {
2223
tag: 'article'
2324
}
2425
})
25-
expect(wrapper.isVueInstance()).toBe(true)
26+
27+
expect(wrapper.vm).toBeDefined()
2628
await waitNT(wrapper.vm)
2729

2830
expect(wrapper.is('article')).toBe(true)
@@ -39,7 +41,8 @@ describe('avatar-group', () => {
3941
default: '<span>FOOBAR</span>'
4042
}
4143
})
42-
expect(wrapper.isVueInstance()).toBe(true)
44+
45+
expect(wrapper.vm).toBeDefined()
4346
await waitNT(wrapper.vm)
4447

4548
expect(wrapper.is('div')).toBe(true)

0 commit comments

Comments
 (0)