Last active
November 5, 2019 01:27
-
-
Save austinbv/13581eb45df4639a94487e723e7c1563 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
export default new Router({ | |
mode: "history", | |
base: process.env.BASE_URL, | |
routes: [ | |
{ | |
path: "/", | |
component: Home | |
}, | |
{ | |
path: "/about", | |
component: About | |
} | |
] | |
}); |
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
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