diff --git a/__tests__/full-setup-library-firestore.test.js b/__tests__/full-setup-library-firestore.test.js index 3d8450f..e33844b 100644 --- a/__tests__/full-setup-library-firestore.test.js +++ b/__tests__/full-setup-library-firestore.test.js @@ -25,6 +25,7 @@ describe.each([ mockListCollections, mockTimestampNow, mockCreate, + mockRecursiveDelete, } = require('firestore-jest-mock/mocks/firestore'); describe('we can start a firestore application', () => { @@ -381,6 +382,15 @@ describe.each([ expect(mockWhere).toHaveBeenCalled(); expect(mockOnSnapShot).toHaveBeenCalled(); }); + + test('recursiveDelete', async () => { + const db = firebase.firestore(); + const citiesRef = db.collection('cities'); + + db.recursiveDelete(citiesRef) + + expect(mockRecursiveDelete).toHaveBeenCalledWith(citiesRef); + }); }); }); });