Introduce account preferences to remember user's previous location (#4126)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { sharedDocumentPath } from "./routeHelpers";
|
||||
import { sharedDocumentPath, accountPreferencesPath } from "./routeHelpers";
|
||||
|
||||
describe("#sharedDocumentPath", () => {
|
||||
test("should return share path for a document", () => {
|
||||
@@ -12,3 +12,9 @@ describe("#sharedDocumentPath", () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("#accountPreferencesPath", () => {
|
||||
test("should return account preferences path", () => {
|
||||
expect(accountPreferencesPath()).toBe("/settings/preferences");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -34,6 +34,10 @@ export function profileSettingsPath(): string {
|
||||
return "/settings";
|
||||
}
|
||||
|
||||
export function accountPreferencesPath(): string {
|
||||
return "/settings/preferences";
|
||||
}
|
||||
|
||||
export function groupSettingsPath(): string {
|
||||
return "/settings/groups";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user