Skip to content

Commit

Permalink
fix: updating example goldens to use children property instead of exp…
Browse files Browse the repository at this point in the history
…licit text or string
  • Loading branch information
alharris-at committed Oct 29, 2021
1 parent 7849ae0 commit 19f3182
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 107 deletions.
22 changes: 8 additions & 14 deletions packages/test-generator/lib/components/collectionWithBinding.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,15 @@
"property": "buttonColor",
"field": "favoriteColor"
}
},
"children": {
"collectionBindingProperties": {
"property": "buttonUser",
"field": "username"
},
"defaultValue": "hspain@gmail.com"
}
},
"children": [
{
"componentType": "Text",
"properties": {},
"value": {
"collectionBindingProperties": {
"property": "buttonUser",
"field": "username"
},
"defaultValue": "hspain@gmail.com"
}
}
]
}
}
]
}
Expand Down
22 changes: 8 additions & 14 deletions packages/test-generator/lib/components/collectionWithSort.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,15 @@
"property": "buttonColor",
"field": "favoriteColor"
}
},
"children": {
"collectionBindingProperties": {
"property": "buttonUser",
"field": "username"
},
"defaultValue": "hspain@gmail.com"
}
},
"children": [
{
"componentType": "Text",
"properties": {},
"value": {
"collectionBindingProperties": {
"property": "buttonUser",
"field": "username"
},
"defaultValue": "hspain@gmail.com"
}
}
]
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,27 @@
}
}
},
"properties": {},
"children": [
{
"componentType": "String",
"name": "String",
"properties": {
"value": {
"concat": [
{
"bindingProperties": {
"property": "buttonUser",
"field": "firstName"
},
"defaultValue": "Harry"
},
{
"value": " "
},
{
"bindingProperties": {
"property": "buttonUser",
"field": "lastName"
},
"defaultValue": "Callahan"
}
]
"properties": {
"children": {
"concat": [
{
"bindingProperties": {
"property": "buttonUser",
"field": "firstName"
},
"defaultValue": "Harry"
},
{
"value": " "
},
{
"bindingProperties": {
"property": "buttonUser",
"field": "lastName"
},
"defaultValue": "Callahan"
}
}
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,9 @@
}
}
}
},
"children": {
"value": "Conditional Text"
}
},
"children": [
{
"componentType": "String",
"name": "String",
"properties": {
"value": {
"value": "Conditional Text"
}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,13 @@
}
}
},
"properties": {},
"children": [
{
"componentType": "Text",
"properties": {
"value": {
"bindingProperties": {
"property": "buttonUser",
"field": "firstName"
},
"defaultValue": "Buddy"
}
}
"properties": {
"children": {
"bindingProperties": {
"property": "buttonUser",
"field": "firstName"
},
"defaultValue": "Buddy"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@
}
}
},
"properties": {},
"children": [
{
"componentType": "Text",
"properties": {
"value": {
"bindingProperties": {
"property": "buttonUser",
"field": "firstName"
},
"defaultValue": "Al"
}
}
"properties": {
"children": {
"bindingProperties": {
"property": "buttonUser",
"field": "firstName"
},
"defaultValue": "Al"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@
"bindingProperties": {
"property": "isDisabled"
}
},
"children": {
"value": "Simple Property Binding"
}
},
"children": [
{
"componentType": "Text",
"properties": {
"value": {
"value": "Simple Property Binding"
}
}
}
]
}
}

0 comments on commit 19f3182

Please sign in to comment.