@@ -18,7 +18,7 @@ import { initializeApp, firestore, app } from 'firebase/app';
18
18
import 'firebase/firestore' ;
19
19
import {
20
20
collection ,
21
- docChanges ,
21
+ collectionChanges ,
22
22
sortedChanges ,
23
23
auditTrail ,
24
24
docData ,
@@ -112,7 +112,7 @@ describe('RxFire Firestore', () => {
112
112
} ) ;
113
113
} ) ;
114
114
115
- describe ( 'docChanges ' , ( ) => {
115
+ describe ( 'collectionChanges ' , ( ) => {
116
116
/**
117
117
* The `stateChanges()` method emits a stream of events as they
118
118
* occur rather than in sorted order.
@@ -124,8 +124,8 @@ describe('RxFire Firestore', () => {
124
124
const { colRef, davidDoc } = seedTest ( firestore ) ;
125
125
126
126
davidDoc . set ( { name : 'David' } ) ;
127
- const firstChange = docChanges ( colRef ) . pipe ( take ( 1 ) ) ;
128
- const secondChange = docChanges ( colRef ) . pipe ( skip ( 1 ) ) ;
127
+ const firstChange = collectionChanges ( colRef ) . pipe ( take ( 1 ) ) ;
128
+ const secondChange = collectionChanges ( colRef ) . pipe ( skip ( 1 ) ) ;
129
129
130
130
firstChange . subscribe ( change => {
131
131
expect ( change [ 0 ] . type ) . to . eq ( 'added' ) ;
@@ -141,7 +141,7 @@ describe('RxFire Firestore', () => {
141
141
142
142
describe ( 'sortedChanges' , ( ) => {
143
143
/**
144
- * The `sortedChanges()` method reduces the stream of `docChanges ()` to
144
+ * The `sortedChanges()` method reduces the stream of `collectionChanges ()` to
145
145
* a sorted array. This test seeds two "people" and checks to make sure
146
146
* the 'added' change type exists. Afterwards, one "person" is modified.
147
147
* The test then checks that the person is modified and in the proper sorted
0 commit comments