Skip to content

Commit 838f825

Browse files
committed
Adding missing tests.
1 parent e711f06 commit 838f825

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/firestore/test/integration/api/query.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,18 @@ apiDescribe('Queries', (persistence: boolean) => {
15821582
'doc3'
15831583
);
15841584

1585+
// Two IN operations on the same field.
1586+
// a IN [1,2,3] && a IN [0,1,4] should result in "a==1".
1587+
await checkOnlineAndOfflineResultsMatch(
1588+
query(
1589+
coll,
1590+
and(where('a', 'in', [1, 2, 3]), where('a', 'in', [0, 1, 4]))
1591+
),
1592+
'doc1',
1593+
'doc4',
1594+
'doc5'
1595+
);
1596+
15851597
// a IN [2,3] && a IN [0,1,4] is never true and so the result should be an
15861598
// empty set.
15871599
await checkOnlineAndOfflineResultsMatch(

0 commit comments

Comments
 (0)