2020-12-04 13:10:32 +01:00
|
|
|
package hub
|
2020-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2020-11-21 18:08:41 +01:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
2020-10-20 11:05:02 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestConfig_MapKey(t *testing.T) {
|
|
|
|
t.Run("success", func(t *testing.T) {
|
2022-03-02 14:16:49 +01:00
|
|
|
c := NewConfig("0.0.0", "testdata/new.yml", "zqkunt22r0bewti9", "test", "PhotoPrism/Test", "test")
|
2020-10-20 11:05:02 +02:00
|
|
|
assert.Equal(t, "", c.MapKey())
|
|
|
|
})
|
|
|
|
}
|