File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
packages/cloud_firestore/cloud_firestore/test Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ void main() {
4646 expect (ref == firestore.collection ('foo' ), isTrue);
4747 expect (ref2 == firestoreSecondary.collection ('foo' ), isTrue);
4848 expect (ref3 == ref, isFalse);
49+
50+ DocumentReference docRef = firestore.collection ('foo' ).doc ('bar' );
51+ DocumentReference docRef2 =
52+ firestoreSecondary.collection ('foo' ).doc ('bar' );
53+
54+ expect (docRef, firestore.collection ('foo' ).doc ('bar' ));
55+ expect (docRef2, firestoreSecondary.collection ('foo' ).doc ('bar' ));
56+ expect (docRef == docRef2, isFalse);
4957 });
5058
5159 test ('returns the correct id' , () {
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ void main() {
3939
4040 expect (ref == firestoreSecondary.doc ('foo/bar' ), isFalse);
4141 expect (ref2 == firestoreSecondary.doc ('foo/bar/baz/bert' ), isFalse);
42+
43+ expect (ref == ref2, isFalse);
4244 });
4345
4446 test ("returns document() returns a $DocumentReference " , () {
You can’t perform that action at this time.
0 commit comments