Skip to content

Commit 94f3da4

Browse files
Jordan-Nelsonragingsquirrel3
authored andcommitted
chore(datastore): enable DataStore plugin interface tests in CI (#2235)
* chore(datastore): enable plugin interface tests in CI * chore: fix failing datastore plugin tests * chore: re-run CI
1 parent e80c713 commit 94f3da4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/amplify_datastore_plugin_interface/test/amplify_modelschema_to_map_test.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ void main() {
125125
'isReadOnly': false,
126126
'association': {
127127
'associationType': 'BelongsTo',
128+
// TODO(Jordan-Nelson): Remove `targetName` when API category has been
129+
// updated to support CPK changes.
128130
'targetName': 'postID',
131+
'targetNames': ['postID'],
129132
'associatedType': 'Post'
130133
},
131134
},
@@ -211,7 +214,10 @@ void main() {
211214
'isReadOnly': false,
212215
'association': {
213216
'associationType': 'BelongsTo',
217+
// TODO(Jordan-Nelson): Remove `targetName` when API category has been
218+
// updated to support CPK changes.
214219
'targetName': 'blogID',
220+
'targetNames': ['blogID'],
215221
'associatedType': 'Blog'
216222
}
217223
},

0 commit comments

Comments
 (0)