Skip to content

Instantly share code, notes, and snippets.

@austinbv
Last active November 5, 2019 01:27
Show Gist options
  • Save austinbv/13581eb45df4639a94487e723e7c1563 to your computer and use it in GitHub Desktop.
Save austinbv/13581eb45df4639a94487e723e7c1563 to your computer and use it in GitHub Desktop.
export default new Router({
mode: "history",
base: process.env.BASE_URL,
routes: [
{
path: "/",
component: Home
},
{
path: "/about",
component: About
}
]
});
describe("/login", () => {
it("routes to the login page", async () => {
const router = createRouter();
await router.push("/login");
expect(router.currentRoute.fullPath).to.eq("/login");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment