MCPcopy
hub / github.com/angular/angularfire / delayAdd

Function delayAdd

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

Source from the content-addressed store, hash-verified

43}
44
45export function delayAdd<T>(collection: AngularFirestoreCollection<T>|firebase.firestore.CollectionReference, path, data, delay = 250) {
46 setTimeout(() => {
47 TestBed.runInInjectionContext(() => collection.doc(path).set(data));
48 }, delay);
49}
50
51export function delayDelete<T>(collection: AngularFirestoreCollection<T>|firebase.firestore.CollectionReference, path, delay = 250) {
52 setTimeout(() => {

Callers 2

collection.spec.tsFile · 0.90

Calls 2

setMethod · 0.65
docMethod · 0.45

Tested by

no test coverage detected