-
-
Save lmiller1990/7553f0db86875c907ac518235cb65840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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