package servicecatalog

import (
	"testing"

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

func TestFormatUrl(t *testing.T) {
	t.Run("should create links to service catalog", func(t *testing.T) {
		tests := []struct {
			in  string
			out string
		}{
			{"127", "https://catalog.xarth.tv/services/127/details"},
		}
		for _, test := range tests {
			assert.Equal(t, FormatURL(test.in), test.out)
		}
	})
}
