Skip to content

Commit

Permalink
Correct tests after removing -X from gopherjs command line.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric BAIL committed Apr 28, 2022
1 parent a8eef9a commit 51e651b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/fyne/internal/commands/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ func Test_PackageGopherJS(t *testing.T) {
expected := []mockRunner{
{
expectedValue: expectedValue{
args: []string{"build", "-ldflags",
"-X 'fyne.io/fyne/v2/internal/app.MetaName=myTest.js' -X 'fyne.io/fyne/v2/internal/app.MetaVersion=1.0.0' -X 'fyne.io/fyne/v2/internal/app.MetaBuild=1'",
args: []string{"build",
"-o", "myTest.js"},
osEnv: true,
dir: "myTest",
Expand Down Expand Up @@ -377,8 +376,7 @@ func Test_PackageWeb(t *testing.T) {
},
{
expectedValue: expectedValue{
args: []string{"build", "-ldflags",
"-X 'fyne.io/fyne/v2/internal/app.MetaName=myTest' -X 'fyne.io/fyne/v2/internal/app.MetaVersion=1.0.0' -X 'fyne.io/fyne/v2/internal/app.MetaBuild=1'",
args: []string{"build",
"-o", "myTest.js"},
osEnv: true,
dir: "myTest",
Expand Down

0 comments on commit 51e651b

Please sign in to comment.