photoprism/pkg/fs/base_test.go
Michael Mayer 02810ffa94 Sync: Import/index after downloading #225
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-06 22:09:45 +02:00

19 lines
299 B
Go

package fs
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestBase(t *testing.T) {
result := Base("/testdata/test.jpg")
assert.Equal(t, "test", result)
}
func TestBaseAbs(t *testing.T) {
result := AbsBase("/testdata/test.jpg")
assert.Equal(t, "/testdata/test", result)
}