You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Make Profile page the default route (#1653)
* make profile the default route * src/pages/Home.tsx -> src/pages/SessionsOverview.tsx * UserHome -> UserSessionsOverview * update snapshots, fix session overview button alignment
This commit is contained in:
@@ -18,18 +18,13 @@ import { segmentsToRoute } from "./Router";
|
||||
|
||||
describe("Router", () => {
|
||||
describe("segmentsToRoute", () => {
|
||||
it("returns home for route with no segments", () => {
|
||||
it("returns profile for route with no segments", () => {
|
||||
const segments: string[] = [];
|
||||
expect(segmentsToRoute(segments)).toEqual({ type: "home" });
|
||||
expect(segmentsToRoute(segments)).toEqual({ type: "profile" });
|
||||
});
|
||||
|
||||
it("returns home for route with and empty string segment", () => {
|
||||
it("returns profile for route with and empty string segment", () => {
|
||||
const segments: string[] = [""];
|
||||
expect(segmentsToRoute(segments)).toEqual({ type: "home" });
|
||||
});
|
||||
|
||||
it("returns profile for route with profile", () => {
|
||||
const segments: string[] = ["profile"];
|
||||
expect(segmentsToRoute(segments)).toEqual({ type: "profile" });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user