()
| 111 | } |
| 112 | |
| 113 | getAllProjects(): Promise<ProjectDefinition[]> { |
| 114 | const self = this |
| 115 | return Promise.resolve() |
| 116 | .then(function () { |
| 117 | return self.data.get(PROJECTS_DEFINITIONS) |
| 118 | }) |
| 119 | .then(function (projects) { |
| 120 | projects = projects || {} |
| 121 | return Object.keys(projects).map((key) => projects[key]) || [] |
| 122 | }) |
| 123 | } |
| 124 | |
| 125 | getProject(projectId: string): Promise<ProjectDefinition> { |
| 126 | const self = this |
no test coverage detected