added functionality to remove group
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user