personal-site/pkg/ui/ui_test.go
2025-03-05 20:01:58 -05:00

16 lines
306 B
Go

package ui
import (
"fmt"
"testing"
"github.com/mikestefanello/pagoda/config"
"github.com/stretchr/testify/assert"
)
func TestFile(t *testing.T) {
path := "abc.txt"
got := File(path)
expected := fmt.Sprintf("/%s/%s?v=%s", config.StaticPrefix, path, cacheBuster)
assert.Equal(t, expected, got)
}