File tree 2 files changed +2
-21
lines changed
test/integration/api_internal 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,7 @@ export class Transaction
544
544
return this ;
545
545
}
546
546
547
- delete ( documentRef : PublicDocumentReference < any > ) : Transaction {
547
+ delete ( documentRef : PublicDocumentReference < unknown > ) : Transaction {
548
548
const ref = castReference ( documentRef ) ;
549
549
this . _delegate . delete ( ref ) ;
550
550
return this ;
@@ -1866,25 +1866,6 @@ function castReference<T>(
1866
1866
return cast < ExpDocumentReference < T > > ( documentRef , ExpDocumentReference ) ;
1867
1867
}
1868
1868
1869
- function validateReference < T > (
1870
- methodName : string ,
1871
- documentRef : PublicDocumentReference < T > ,
1872
- firestore : Firestore
1873
- ) : ExpDocumentReference < T > {
1874
- const reference = cast < ExpDocumentReference < T > > (
1875
- documentRef ,
1876
- ExpDocumentReference
1877
- ) ;
1878
- if ( reference . firestore !== firestore . _delegate ) {
1879
- throw new FirestoreError (
1880
- Code . INVALID_ARGUMENT ,
1881
- 'Provided document reference is from a different Firestore instance.'
1882
- ) ;
1883
- } else {
1884
- return reference ;
1885
- }
1886
- }
1887
-
1888
1869
/**
1889
1870
* Converts custom model object of type T into DocumentData by applying the
1890
1871
* converter if it exists.
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ apiDescribe(
146
146
} ) ;
147
147
} ) ;
148
148
149
- it ( 'handle reading a doc twice with different versions' , ( ) => {
149
+ it . only ( 'handle reading a doc twice with different versions' , ( ) => {
150
150
return integrationHelpers . withTestDb ( persistence , db => {
151
151
asyncQueue ( db ) . skipDelaysForTimerId ( TimerId . TransactionRetry ) ;
152
152
const doc = db . collection ( 'counters' ) . doc ( ) ;
You can’t perform that action at this time.
0 commit comments