19 lines
368 B
Go
19 lines
368 B
Go
package genutil
|
|
|
|
import (
|
|
"encoding/json"
|
|
"path/filepath"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestExportGenesisFileWithTime(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
fname := filepath.Join(t.TempDir(), "genesis.json")
|
|
|
|
require.NoError(t, ExportGenesisFileWithTime(fname, "test", nil, json.RawMessage(`{"account_owner": "Bob"}`), time.Now()))
|
|
}
|