From f6993d54d61c0905aa553b7793cec2ee0262aec9 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 15 Jan 2025 18:21:40 +0100 Subject: [PATCH] feedback --- _registry/ignite.apps.cca.json | 3 ++- cca/integration/app_test.go | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/_registry/ignite.apps.cca.json b/_registry/ignite.apps.cca.json index 6bf8cef9..9d373436 100644 --- a/_registry/ignite.apps.cca.json +++ b/_registry/ignite.apps.cca.json @@ -1,5 +1,6 @@ { - "appName": "cca", + "appName": "CCA", + "slug": "cca", "appDescription": "Scaffold a blockchain frontend in seconds with Ignite", "ignite": ">28.7.0", "dependencies": {}, diff --git a/cca/integration/app_test.go b/cca/integration/app_test.go index 51c1c480..18aef8f8 100644 --- a/cca/integration/app_test.go +++ b/cca/integration/app_test.go @@ -40,6 +40,10 @@ func TestCCA(t *testing.T) { }) assertGlobalPlugins(t, nil) + // no web folder yet + _, err = os.Stat(filepath.Join(app.SourcePath(), "web")) + require.Error(err) + buf := &bytes.Buffer{} env.Must(env.Exec("run cca", step.NewSteps(step.New( @@ -55,6 +59,9 @@ func TestCCA(t *testing.T) { )) require.Contains(buf.String(), "Ignite CCA added") + ccaFolder, err := os.Stat(filepath.Join(app.SourcePath(), "web")) + require.NoError(err) + require.True(ccaFolder.IsDir()) } func assertLocalPlugins(t *testing.T, app envtest.App, expectedPlugins []pluginsconfig.Plugin) {