Skip to content

Commit

Permalink
fix: correct field name for composer in PlatformPlugin struct
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Feb 19, 2025
1 parent 1d36f4e commit 76f29a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extension/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestConvertPlugin(t *testing.T) {
plugin := PlatformPlugin{
path: t.TempDir(),
config: &Config{},
composer: PlatformComposerJson{
Composer: PlatformComposerJson{
Extra: platformComposerJsonExtra{
ShopwarePluginClass: "FroshTools\\FroshTools",
},
Expand Down
4 changes: 2 additions & 2 deletions extension/platform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func getTestPlugin(tempDir string) PlatformPlugin {
return PlatformPlugin{
path: tempDir,
composer: PlatformComposerJson{
Composer: PlatformComposerJson{
Name: "frosh/frosh-tools",
Description: "Frosh Tools",
License: "mit",
Expand Down Expand Up @@ -80,7 +80,7 @@ func TestPluginIconDifferntPathExists(t *testing.T) {
dir := t.TempDir()

plugin := getTestPlugin(dir)
plugin.composer.Extra.PluginIcon = "plugin.png"
plugin.Composer.Extra.PluginIcon = "plugin.png"

assert.NoError(t, os.WriteFile(dir+"/plugin.png", []byte("test"), os.ModePerm))

Expand Down

0 comments on commit 76f29a4

Please sign in to comment.