photoprism/internal/util/file_test.go
2019-05-06 23:18:10 +02:00

20 lines
369 B
Go

package util
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestExists(t *testing.T) {
assert.True(t, Exists("./testdata/test.jpg"))
assert.False(t, Exists("./foo.jpg"))
}
func TestExpandedFilename(t *testing.T) {
filename := ExpandedFilename("./testdata/test.jpg")
assert.IsType(t, "", filename)
t.Logf("ExpandedFilename: %s", filename)
}