Skip to content

Commit

Permalink
fix: Type in frontendunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Nov 21, 2023
1 parent e863e68 commit 8d4d93e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
Project,
ProjectService,
ProjectVisibility,
ProjectVisibilityDescriptions,
} from '../service/project.service';
import { CreateProjectComponent } from './create-project.component';

Expand Down Expand Up @@ -125,10 +126,10 @@ describe('CreateProjectComponent', () => {
};
},
getProjectVisibilityDescription(visibility: ProjectVisibility): string {
return ProjectVisibility[visibility];
return ProjectVisibilityDescriptions[visibility];
},
getAvailableVisibilities(): ProjectVisibility[] {
return Object.keys(ProjectVisibility) as ProjectVisibility[];
return Object.keys(ProjectVisibilityDescriptions) as ProjectVisibility[];
},
};

Expand Down

0 comments on commit 8d4d93e

Please sign in to comment.