photoprism/internal/entity/photo_album_test.go

16 lines
275 B
Go
Raw Normal View History

package entity
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewPhotoAlbum(t *testing.T) {
t.Run("new album", func(t *testing.T) {
m := NewPhotoAlbum("ABC", "EFG")
assert.Equal(t, "ABC", m.PhotoUUID)
assert.Equal(t, "EFG", m.AlbumUUID)
})
}