Hides the object names that use the terminology the feature flag has turned off.
(objects: string[], useSharedFoldersTerm: boolean)
| 46 | |
| 47 | /** Hides the object names that use the terminology the feature flag has turned off. */ |
| 48 | private visibleObjects(objects: string[], useSharedFoldersTerm: boolean): string[] { |
| 49 | return objects.filter((object) => |
| 50 | useSharedFoldersTerm |
| 51 | ? !object.includes("collection") && object !== "folder" && object !== "folders" |
| 52 | : !object.includes("shared-folder") && !object.includes("my-folder"), |
| 53 | ); |
| 54 | } |
| 55 | |
| 56 | private validateObject( |
| 57 | requestedObject: string, |
no test coverage detected