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