Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Nov 10, 2023
1 parent 143c915 commit e5782e5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions migrations/account_type/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ func TestNestedTypeValueMigration(t *testing.T) {
),
interpreter.NewUnmeteredInt8Value(4),
storedAccountTypeValue,
interpreter.NewUnmeteredInt8Value(5),
interpreter.NewUnmeteredStringValue("hello"),
),
expectedValue: interpreter.NewDictionaryValue(
inter,
Expand All @@ -510,6 +512,8 @@ func TestNestedTypeValueMigration(t *testing.T) {
),
interpreter.NewUnmeteredInt8Value(4),
expectedAccountTypeValue,
interpreter.NewUnmeteredInt8Value(5),
interpreter.NewUnmeteredStringValue("hello"),
),
},
"dictionary_with_optional_account_type_value": {
Expand Down Expand Up @@ -602,7 +606,8 @@ func TestNestedTypeValueMigration(t *testing.T) {
"Bar",
common.CompositeKindResource,
[]interpreter.CompositeField{
interpreter.NewUnmeteredCompositeField("field", storedAccountTypeValue),
interpreter.NewUnmeteredCompositeField("field1", storedAccountTypeValue),
interpreter.NewUnmeteredCompositeField("field2", interpreter.NewUnmeteredStringValue("hello")),
},
common.Address{},
),
Expand All @@ -613,7 +618,8 @@ func TestNestedTypeValueMigration(t *testing.T) {
"Bar",
common.CompositeKindResource,
[]interpreter.CompositeField{
interpreter.NewUnmeteredCompositeField("field", expectedAccountTypeValue),
interpreter.NewUnmeteredCompositeField("field1", expectedAccountTypeValue),
interpreter.NewUnmeteredCompositeField("field2", interpreter.NewUnmeteredStringValue("hello")),
},
common.Address{},
),
Expand Down

0 comments on commit e5782e5

Please sign in to comment.