Skip to content

Commit bf3b75b

Browse files
committed
fix: unit test
1 parent 834c1de commit bf3b75b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/pages/UserProfilePage/Tabs/ProfileSkillTab.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('ProfileSkillTab', () => {
7474
let wrapper = lpiShallowMount(ProfileSkillTab, buildParams(user))
7575
let vm: any = wrapper.vm
7676
expect(wrapper.find('.empty-field').exists()).toBe(true)
77-
expect(wrapper.findAll('user-skills-stub').length).toBe(0)
77+
expect(wrapper.findAll('user-skills-full-stub').length).toBe(0)
7878
})
7979

8080
it('should display one list if user has skill but no hobby', () => {
@@ -86,7 +86,7 @@ describe('ProfileSkillTab', () => {
8686
let wrapper = lpiShallowMount(ProfileSkillTab, buildParams(user))
8787
let vm: any = wrapper.vm
8888
expect(wrapper.find('.empty-field').exists()).toBe(false)
89-
expect(wrapper.findAll('user-skills-stub').length).toBe(1)
89+
expect(wrapper.findAll('user-skills-full-stub').length).toBe(1)
9090
})
9191

9292
it('should display one list if user has hobbies but no skills', () => {
@@ -98,7 +98,7 @@ describe('ProfileSkillTab', () => {
9898
let wrapper = lpiShallowMount(ProfileSkillTab, buildParams(user))
9999
let vm: any = wrapper.vm
100100
expect(wrapper.find('.empty-field').exists()).toBe(false)
101-
expect(wrapper.findAll('user-skills-stub').length).toBe(1)
101+
expect(wrapper.findAll('user-skills-full-stub').length).toBe(1)
102102
})
103103

104104
it('should display two lists if user has hobbies and skills', () => {
@@ -113,7 +113,7 @@ describe('ProfileSkillTab', () => {
113113
let wrapper = lpiShallowMount(ProfileSkillTab, buildParams(user))
114114
let vm: any = wrapper.vm
115115
expect(wrapper.find('.empty-field').exists()).toBe(false)
116-
expect(wrapper.findAll('user-skills-stub').length).toBe(2)
116+
expect(wrapper.findAll('user-skills-full-stub').length).toBe(2)
117117
})
118118

119119
it('should display a tip if list are displayed', () => {

0 commit comments

Comments
 (0)