Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Jun 23, 2019
1 parent f5331bc commit 3fe8bad
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client/src/app_user/test/router.spec.js
Expand Up @@ -8,17 +8,12 @@ const { expect, assert } = chai;
describe("Router", async function() {
const { router, context } = await UserApp();
it("/login", async () => {
// console.log("CONTEXT ", context);
const route = await router.instance.resolve("/user/auth/login");
const route = await router.instance.resolve("/auth/login");
assert(route);
assert(route.component)
assert.equal(route.title, "Login");
});
it("/app/profile not authenticated", async () => {
expect(router.instance.resolve("/profile")).to.be.rejectedWith(Error);
});
it.skip("/app/profile authenticated", async () => {
context.parts.auth.stores().auth.authenticated = true;
const route = await router.instance.resolve("/profile");
assert.equal(route.title, "My Profile");
});
});

0 comments on commit 3fe8bad

Please sign in to comment.