Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created July 24, 2018 04:41
Show Gist options
  • Save lmiller1990/7553f0db86875c907ac518235cb65840 to your computer and use it in GitHub Desktop.
Save lmiller1990/7553f0db86875c907ac518235cb65840 to your computer and use it in GitHub Desktop.
import { shallowMount } from "@vue/test-utils"
import NestedRoute from "@/components/NestedRoute.vue"
import routes from "@/routes.js"
describe("NestedRoute", () => {
it("renders a username from query string", () => {
const username = "alice"
const wrapper = shallowMount(NestedRoute)
expect(wrapper.find(".username").text()).toBe(username)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment