Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test-utils): verify object not null for typeof (#1897)
Using vue-test-utils may cause several messages of the sort ``` [Vue warn]: Error in render: "TypeError: Cannot read property 'template' of null" ``` Such messages stemmed from the `isComponentOptions` method call. It seems it received a null object and `typeof null` is object, so this error propagates to users of the library. This patch does not look for the reason a null object was sent in the first place, but it avoids the error propagation. close #1805
- Loading branch information