how to test firestore methods
问题 I have the following issue: I want to test the following methods who make use of Firestore: databaseService.ts import {Injectable} from '@angular/core'; import {AngularFirestore} from '@angular/fire/firestore'; @Injectable({ providedIn: 'root' }) export class DatabaseService { constructor(private afs: AngularFirestore) { } pushToDatabase(subject: string, key: string, object: Object): void { this.afs.collection(subject).doc(key).set(JSON.parse(JSON.stringify(object))); } async getData(subject: