Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created July 24, 2018 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmiller1990/8fc6f13b3d174dcf674d786c6abffaee to your computer and use it in GitHub Desktop.
Save lmiller1990/8fc6f13b3d174dcf674d786c6abffaee to your computer and use it in GitHub Desktop.
tests/unit/NestedRoute.spec.js
NestedRoute
✕ renders a username from query string (25ms)
● NestedRoute › renders a username from query string
[vue-test-utils]: find did not return .username, cannot call text() on empty Wrapper
```
Update `<NestedRoute>`:
```vue
<template>
<div>
Nested Route
<div class="username">
{{ $route.params.username }}
</div>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment