diff --git a/src/firestore/document/document.spec.ts b/src/firestore/document/document.spec.ts index 1ce2dc96c..2c2fd50fb 100644 --- a/src/firestore/document/document.spec.ts +++ b/src/firestore/document/document.spec.ts @@ -55,7 +55,7 @@ describe('AngularFirestoreDocument', () => { const obs$ = stock.valueChanges({ idField }); obs$.pipe(take(1)).subscribe(async data => { expect(data[idField]).toBeDefined(); - expect(data).toEqual(FAKE_STOCK_DATA); + expect(data).toEqual(jasmine.objectContaining(FAKE_STOCK_DATA)); stock.delete().then(done).catch(done.fail); }); });