Skip to content

Commit

Permalink
fix(cosmosgen): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgooz committed Mar 17, 2022
1 parent 0c3d9a6 commit 2a0a80f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integration/cosmosgen/cosmosgen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func TestCosmosGen(t *testing.T) {
env = envtest.New(t)
path = env.Scaffold("blog")
)

const (
withMsgModuleName = "withmsg"
withoutMsgModuleName = "withoutmsg"
Expand Down Expand Up @@ -105,7 +106,6 @@ func TestCosmosGen(t *testing.T) {

var expectedCosmosModules = []string{
"cosmos.auth.v1beta1",
"cosmos.authz.v1beta1",
"cosmos.bank.v1beta1",
"cosmos.base.tendermint.v1beta1",
"cosmos.crisis.v1beta1",
Expand All @@ -129,6 +129,9 @@ func TestCosmosGen(t *testing.T) {
}

dirGenerated := filepath.Join(path, "vue/src/store/generated")

require.NoError(t, os.RemoveAll(dirGenerated))

for _, chainModule := range expectedCustomModules {
_, statErr := os.Stat(filepath.Join(dirGenerated, "test/blog", chainModule))
require.False(t, os.IsNotExist(statErr), fmt.Sprintf("the %s vuex store should have be generated", chainModule))
Expand Down

0 comments on commit 2a0a80f

Please sign in to comment.