Notifications interface (#5354)
Co-authored-by: Apoorv Mishra <apoorvmishra101092@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { sharedDocumentPath, accountPreferencesPath } from "./routeHelpers";
|
||||
import { sharedDocumentPath } from "./routeHelpers";
|
||||
|
||||
describe("#sharedDocumentPath", () => {
|
||||
test("should return share path for a document", () => {
|
||||
@@ -12,9 +12,3 @@ describe("#sharedDocumentPath", () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("#accountPreferencesPath", () => {
|
||||
test("should return account preferences path", () => {
|
||||
expect(accountPreferencesPath()).toBe("/settings/preferences");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -23,24 +23,8 @@ export function trashPath(): string {
|
||||
return "/trash";
|
||||
}
|
||||
|
||||
export function settingsPath(): string {
|
||||
return "/settings";
|
||||
}
|
||||
|
||||
export function organizationSettingsPath(): string {
|
||||
return "/settings/details";
|
||||
}
|
||||
|
||||
export function profileSettingsPath(): string {
|
||||
return "/settings";
|
||||
}
|
||||
|
||||
export function accountPreferencesPath(): string {
|
||||
return "/settings/preferences";
|
||||
}
|
||||
|
||||
export function groupSettingsPath(): string {
|
||||
return "/settings/groups";
|
||||
export function settingsPath(section?: string): string {
|
||||
return "/settings" + (section ? `/${section}` : "");
|
||||
}
|
||||
|
||||
export function commentPath(document: Document, comment: Comment): string {
|
||||
|
||||
Reference in New Issue
Block a user