core/app/import/main_test.go
2022-08-02 19:10:28 +02:00

21 lines
331 B
Go

package main
import (
"testing"
"github.com/datarhei/core/v16/config"
"github.com/stretchr/testify/require"
)
func TestImport(t *testing.T) {
configstore := config.NewDummyStore()
cfg := configstore.Get()
err := configstore.Set(cfg)
require.NoError(t, err)
err = doImport(nil, configstore)
require.NoError(t, err)
}