diff --git a/__tests__/full-setup.test.js b/__tests__/full-setup.test.js index f0ae9a4..7b5fae5 100644 --- a/__tests__/full-setup.test.js +++ b/__tests__/full-setup.test.js @@ -35,6 +35,7 @@ describe.each` FakeFirestore, mockQueryOnSnapshot, mockTimestampNow, + mockRecursiveDelete, } = require('firestore-jest-mock/mocks/firestore'); mockFirebase( @@ -416,6 +417,15 @@ describe.each` expect(mockQueryOnSnapshot).toHaveBeenCalled(); }); + test('recursiveDelete', async () => { + const db = firebase.firestore(); + const citiesRef = db.collection('cities'); + + db.recursiveDelete(citiesRef) + + expect(mockRecursiveDelete).toHaveBeenCalledWith(citiesRef); + }); + describe('withConverter', () => { const converter = { fromFirestore: () => {},