hasMany subquery test
This commit is contained in:
parent
b6e0dfa8c9
commit
975935cffd
1 changed files with 8 additions and 0 deletions
|
@ -68,5 +68,13 @@ hasManyTests(FutureOr<QueryExecutor> Function() createExecutor,
|
|||
var tree = await tq.deleteOne(executor);
|
||||
verify(tree);
|
||||
});
|
||||
|
||||
test('returns empty on false subquery', () async {
|
||||
var tq = new TreeQuery()
|
||||
..where.id.equals(treeId)
|
||||
..fruits.where.commonName.equals('Kiwi');
|
||||
var tree = await tq.getOne(executor);
|
||||
expect(tree.fruits, isEmpty);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue