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
Basically, I would like to assert that when expecting an "albums" property, it should always be there. If no items matches, it should be empty instead of not defined at all:
db.bands.add({id: 3,name: 'Band without albums',genreId: 1})constresults=awaitdb.bands.with({albums: 'albums'});// Here's the assertion I would like to have:assert(results.every(band=>band.albums&&Array.isArray(band.albums)));
The text was updated successfully, but these errors were encountered:
Basically, I would like to assert that when expecting an "albums" property, it should always be there. If no items matches, it should be empty instead of not defined at all:
The text was updated successfully, but these errors were encountered: