Skip to content

Commit eee2ac0

Browse files
committed
add test
1 parent 85b2047 commit eee2ac0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/fieldPath/documentId.test.ts

+9
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ describe('test document id type', () => {
5151
)
5252
})
5353

54+
it('test document id type is string', () => {
55+
query(
56+
collectionGroupRef,
57+
// @ts-expect-error
58+
where(documentId(), '==', fullDocPath as string)
59+
)
60+
query(collectionRef, where(documentId(), '!=', 'a' as string))
61+
})
62+
5463
it('test correct input', () => {
5564
query(collectionGroupRef, where(documentId(), '==', fullDocPath))
5665
query(collectionRef, where(documentId(), '!=', 'a'))

0 commit comments

Comments
 (0)