Skip to content

Commit 92d588f

Browse files
committed
chore(compat): refactor skeleton-wrapper test
@vue/test-utils v2 have special handling of functional component Refactor test to be independent of this
1 parent 6353c31 commit 92d588f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/skeleton/skeleton-wrapper.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ describe('skeleton-wrapper', () => {
3131
}
3232
})
3333

34-
expect(wrapper.element.tagName).toBe('BUTTON')
35-
expect(wrapper.text()).toBe('Action')
34+
expect(wrapper.find('button').text()).toBe('Action')
3635
})
3736

3837
it('root element has correct aria attributes in loading state', async () => {

0 commit comments

Comments
 (0)