photoprism/internal/models/photo_album_test.go

15 lines
274 B
Go
Raw Normal View History

package models
import (
"github.com/stretchr/testify/assert"
"testing"
)
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)
})
}