mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +08:00
21 lines
331 B
Go
21 lines
331 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/datarhei/core/v16/config/store"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestImport(t *testing.T) {
|
|
configstore := store.NewDummy()
|
|
|
|
cfg := configstore.Get()
|
|
|
|
err := configstore.Set(cfg)
|
|
require.NoError(t, err)
|
|
|
|
err = doImport(nil, configstore)
|
|
require.NoError(t, err)
|
|
}
|