File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/firestore/test/unit/local Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ import { MutationQueue } from '../../../src/local/mutation_queue';
27
27
28
28
/**
29
29
* A test-only query engine that forwards all calls to the query engine
30
- * provided at construction time, but provides access to the number of
31
- * documents and mutations read.
30
+ * provided at construction time while exposing to the number of documents and
31
+ * mutations read.
32
32
*/
33
33
export class ForwardingCountingQueryEngine implements QueryEngine {
34
34
/**
@@ -45,7 +45,7 @@ export class ForwardingCountingQueryEngine implements QueryEngine {
45
45
46
46
constructor ( private readonly queryEngine : QueryEngine ) { }
47
47
48
- resetCounts ( ) : void {
48
+ resetCounts ( ) : void {
49
49
this . mutationsRead = 0 ;
50
50
this . documentsRead = 0 ;
51
51
}
@@ -64,9 +64,9 @@ export class ForwardingCountingQueryEngine implements QueryEngine {
64
64
65
65
setLocalDocumentsView ( localDocuments : LocalDocumentsView ) : void {
66
66
const view = new LocalDocumentsView (
67
- this . wrapRemoteDocumentCache ( localDocuments . remoteDocumentCache ) ,
68
- this . wrapMutationQueue ( localDocuments . mutationQueue ) ,
69
- localDocuments . indexManager
67
+ this . wrapRemoteDocumentCache ( localDocuments . remoteDocumentCache ) ,
68
+ this . wrapMutationQueue ( localDocuments . mutationQueue ) ,
69
+ localDocuments . indexManager
70
70
) ;
71
71
72
72
return this . queryEngine . setLocalDocumentsView ( view ) ;
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ import {
73
73
} from '../../util/helpers' ;
74
74
75
75
import { FieldValue , IntegerValue } from '../../../src/model/field_value' ;
76
- import * as persistenceHelpers from './persistence_test_helpers' ;
77
76
import { ForwardingCountingQueryEngine } from './forwarding_counting_query_engine' ;
77
+ import * as persistenceHelpers from './persistence_test_helpers' ;
78
78
79
79
class LocalStoreTester {
80
80
private promiseChain : Promise < void > = Promise . resolve ( ) ;
You can’t perform that action at this time.
0 commit comments