added functionality to remove group

This commit is contained in:
2021-08-12 00:51:59 +04:00
parent 10e5c72c90
commit 707592195a
3 changed files with 72 additions and 1 deletions

View File

@@ -14,3 +14,19 @@ func TestCreateGroup(t *testing.T) {
}
PrettyPrint(group)
}
func TestRemoveGroup(t *testing.T) {
// Creates a new group
group, err := CreateGroup()
if err != nil {
fmt.Println(err)
t.Fail()
}
// Removes the new group
// creates
err = RemoveGroup(group.ID)
if err != nil {
fmt.Println(err)
t.Fail()
}
}