842da9f09b
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
17 lines
306 B
Go
17 lines
306 B
Go
package query
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetMomentsTime(t *testing.T) {
|
|
t.Run("result found", func(t *testing.T) {
|
|
result, err := GetMomentsTime()
|
|
|
|
assert.Nil(t, err)
|
|
assert.Equal(t, 2790, result[0].PhotoYear)
|
|
assert.Equal(t, 2, result[0].Count)
|
|
})
|
|
}
|