Skip to content

Commit

Permalink
fix: use functional component name in vmMatchesName
Browse files Browse the repository at this point in the history
  • Loading branch information
Djaler committed Mar 31, 2021
1 parent 62dec1c commit 9d18161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/test-utils/src/matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function vmMatchesName(vm, name) {
// We want to mirror how Vue resolves component names in SFCs:
// For example, <test-component />, <TestComponent /> and `<testComponent />
// all resolve to the same component
const componentName = (vm.$options && vm.$options.name) || ''
const componentName = vm.name || (vm.$options && vm.$options.name) || ''
return (
!!name &&
(componentName === name ||
Expand Down

0 comments on commit 9d18161

Please sign in to comment.