24 lines
684 B
Go

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)
}
}
}
func TestVIPTrialCardIsValidResourceType(t *testing.T) {
if !ValidResourceType(TypeVIPTrialCard) {
t.Fatalf("vip_trial_card must be accepted as a configured resource type")
}
}