MCPcopy Index your code
hub / github.com/angular/angularfire / delayUpdate

Function delayUpdate

src/compat/firestore/utils.spec.ts:39–43  ·  view source on GitHub ↗
(collection: AngularFirestoreCollection<T>|firebase.firestore.CollectionReference, path, data, delay = 250)

Source from the content-addressed store, hash-verified

37}
38
39export function delayUpdate<T>(collection: AngularFirestoreCollection<T>|firebase.firestore.CollectionReference, path, data, delay = 250) {
40 setTimeout(() => {
41 TestBed.runInInjectionContext(() => collection.doc(path).update(data));
42 }, delay);
43}
44
45export function delayAdd<T>(collection: AngularFirestoreCollection<T>|firebase.firestore.CollectionReference, path, data, delay = 250) {
46 setTimeout(() => {

Callers 2

collection.spec.tsFile · 0.90

Calls 2

updateMethod · 0.65
docMethod · 0.45

Tested by

no test coverage detected