Skip to content

Commit

Permalink
Add recursiveDelete test to full-setup.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
netdown authored Jan 26, 2024
1 parent 09491c1 commit 13d6dc9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions __tests__/full-setup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe.each`
FakeFirestore,
mockQueryOnSnapshot,
mockTimestampNow,
mockRecursiveDelete,
} = require('firestore-jest-mock/mocks/firestore');

mockFirebase(
Expand Down Expand Up @@ -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: () => {},
Expand Down

0 comments on commit 13d6dc9

Please sign in to comment.