photoprism/internal/hub/config_test.go
Michael Mayer 5acc02e248 Config: Initialize storage folder with serial
To detect non-permanent storage and configuration issues.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-12-05 06:21:16 +01:00

15 lines
259 B
Go

package hub
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestConfig_MapKey(t *testing.T) {
t.Run("success", func(t *testing.T) {
c := NewConfig("0.0.0", "testdata/new.yml", "zqkunt22r0bewti9")
assert.Equal(t, "", c.MapKey())
})
}