github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/x/genutil/utils_test.go (about)

     1  package genutil
     2  
     3  import (
     4  	"encoding/json"
     5  	"path/filepath"
     6  	"testing"
     7  	"time"
     8  
     9  	"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/tests"
    10  
    11  	"github.com/stretchr/testify/require"
    12  )
    13  
    14  func TestExportGenesisFileWithTime(t *testing.T) {
    15  	t.Parallel()
    16  	dir, cleanup := tests.NewTestCaseDir(t)
    17  	defer cleanup()
    18  
    19  	fname := filepath.Join(dir, "genesis.json")
    20  	require.NoError(t, ExportGenesisFileWithTime(fname, "test", nil, json.RawMessage("{}"), time.Now()))
    21  }