package mysql

import (
	"testing"

	resourcedomain "hyapp/services/wallet-service/internal/domain/resource"
)

func TestDecorativeResourceTypesAreEquipable(t *testing.T) {
	for _, resourceType := range []string{resourcedomain.TypeProfileCard, resourcedomain.TypeMicSeatAnimation} {
		if !isEquipableResourceType(resourceType) {
			t.Fatalf("%s resources must use the equipment slot just like other profile decorations", resourceType)
		}
	}
}

func TestGrantDefaultEquippedResourceTypes(t *testing.T) {
	for _, resourceType := range []string{resourcedomain.TypeBadge, resourcedomain.TypeMicSeatAnimation} {
		if !isAutoEquippedOnGrantResourceType(resourceType) {
			t.Fatalf("%s resources must auto equip inside resource grant transactions", resourceType)
		}
	}
}
