diff --git a/internal/super/flix_test.go b/internal/super/flix_test.go index 72336b925..c1b2c117b 100644 --- a/internal/super/flix_test.go +++ b/internal/super/flix_test.go @@ -1,13 +1,32 @@ +/* + * Flow CLI + * + * Copyright 2024 Flow Foundation, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package super import ( "testing" + "github.com/spf13/afero" + "github.com/stretchr/testify/assert" + "github.com/onflow/flow-cli/flowkit" "github.com/onflow/flow-cli/flowkit/config" "github.com/onflow/flow-cli/flowkit/tests" - "github.com/spf13/afero" - "github.com/stretchr/testify/assert" ) func Test_flix_generate(t *testing.T) { @@ -56,5 +75,11 @@ func Test_flix_generate(t *testing.T) { cs := GetDeployedContracts(state) assert.Equal(t, 1, len(cs)) + networkContract := cs[tests.ContractHelloString.Name] + assert.NotNil(t, networkContract) + addr := networkContract["emulator"] + acct, err := state.Accounts().ByName("emulator-account") + assert.NoError(t, err) + assert.Equal(t, acct.Address.String(), addr) }