18 lines
502 B
Go
18 lines
502 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)
|
|
}
|
|
}
|
|
}
|