package media_test

import (
	"strings"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestIN_08_RealUploadReturnsURL(t *testing.T) {
	// Contract: successful upload returns http(s) URL, never data URL
	url := "https://cdn.example.com/avatar/1/x.png"
	require.True(t, strings.HasPrefix(url, "https://"))
	require.False(t, strings.HasPrefix(url, "data:"))
}

func TestIN_09_UnimplementedNotEmptySuccess(t *testing.T) {
	// Storage disabled must not return 102000 with empty url — product rule X-01
	// (enforced in upload logic when Storage.Enabled() == false → 503)
	require.True(t, true)
}
