Add unit tests for TeamsRepository and TeamsService
- Implement tests for team creation, retrieval, updating, and deletion in TeamsRepository. - Add tests for team member management including adding and removing members. - Create tests for team invitations and searching teams. - Ensure proper cleanup of test data after each test case. - Validate unauthorized operations for team management.
This commit is contained in:
@@ -15,6 +15,9 @@ pub enum ResourceEnum {
|
||||
Events,
|
||||
Testimonials,
|
||||
Mentors,
|
||||
Teams,
|
||||
TeamMembers,
|
||||
TeamInvitations,
|
||||
}
|
||||
|
||||
impl fmt::Display for ResourceEnum {
|
||||
@@ -33,6 +36,9 @@ impl fmt::Display for ResourceEnum {
|
||||
ResourceEnum::Events => "app_events",
|
||||
ResourceEnum::Testimonials => "app_testimonials",
|
||||
ResourceEnum::Mentors => "app_mentors",
|
||||
ResourceEnum::Teams => "app_teams",
|
||||
ResourceEnum::TeamMembers => "app_team_members",
|
||||
ResourceEnum::TeamInvitations => "app_team_invitations",
|
||||
};
|
||||
write!(f, "{str}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user