package resource import "testing" func TestProfileCardIsValidResourceType(t *testing.T) { if !ValidResourceType(TypeProfileCard) { t.Fatalf("profile_card must be accepted as a configured resource type") } } func TestRoomAndEmojiAssetsAreValidResourceTypes(t *testing.T) { for _, resourceType := range []string{TypeMicSeatIcon, TypeMicSeatAnimation, TypeEmojiPack} { if !ValidResourceType(resourceType) { t.Fatalf("%s must be accepted as a configured resource type", resourceType) } } }