Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

fix: accept object syntax for to prop in router mock #55

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

maartenvanhunsel
Copy link
Contributor

The vue-router mock doesn't accept a named route object.

[Vue warn]: Invalid prop: type check failed for prop "to". Expected String with value "[object Object]", got Object  

@danielroe danielroe changed the title Prevent invalid prop warning if object passed fix: accept object syntax for to prop in router mock Feb 1, 2023
@danielroe danielroe merged commit 129b8f4 into danielroe:main Feb 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants