chore(repo): reinitialize repository
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package dashboard
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"inbox/internal/domain/role"
|
||||
)
|
||||
|
||||
func TestPendingRolesForTopicReturnsEmptySliceWhenNoItems(t *testing.T) {
|
||||
got := pendingRolesForTopic(nil, []role.Definition{
|
||||
{Name: "leader", IsEnabled: true},
|
||||
{Name: "worker", IsEnabled: true},
|
||||
})
|
||||
if got == nil {
|
||||
t.Fatalf("expected empty slice, got nil")
|
||||
}
|
||||
if len(got) != 0 {
|
||||
t.Fatalf("expected no pending roles, got %v", got)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user