You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior:result.items should be an empty array since there are currently no EntryItems with primaryId="1234" in the table.
Actual Behavior:result.items contains an instance of EntryItems matching the following shape:
{primaryId: "1234",someRandomAttribute: '"This can be anything!" // This attribute doesn'texistonEntryItem}
Running console.log(result.items[0] instanceof EntryItem) will log true to the console which indicates that the business logic is indiscriminately setting attributes on the expected EntityClass regardless of whether or not the item in the database was actually serialized from that class.
The text was updated successfully, but these errors were encountered:
Example:
Expected Behavior:
result.items
should be an empty array since there are currently noEntryItems
withprimaryId="1234"
in the table.Actual Behavior:
result.items
contains an instance ofEntryItems
matching the following shape:Running
console.log(result.items[0] instanceof EntryItem)
will logtrue
to the console which indicates that the business logic is indiscriminately setting attributes on the expectedEntityClass
regardless of whether or not the item in the database was actually serialized from that class.The text was updated successfully, but these errors were encountered: