Skip to content

Commit

Permalink
fix: address reserved keywords in bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
alharris-at authored and dpilch committed Feb 25, 2022
1 parent d42d103 commit 1df9bf2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,5 +567,11 @@ describe('amplify render tests', () => {
).toMatchSnapshot();
});
});

describe('data', () => {
it('supports auth bindings in actions', () => {
expect(generateWithAmplifyRenderer('bindings/data/dataBindingNamedClass').componentText).toMatchSnapshot();
});
});
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"id": "1234-5678-9010",
"componentType": "Text",
"name": "DataBindingNamedClass",
"bindingProperties": {
"class": {
"type": "Data",
"bindingProperties": {
"model": "Class"
}
}
},
"properties": {
"label": {
"bindingProperties": {
"property": "class",
"field": "name"
}
}
},
"schemaVersion": "1.0"
}

0 comments on commit 1df9bf2

Please sign in to comment.