Skip to content

Commit

Permalink
Fix tests full-setup-library-firestore.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
netdown authored Jan 26, 2024
1 parent 4353045 commit 39a06fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __tests__/full-setup-library-firestore.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ describe.each([
batch.set(nycRef, { name: 'New York City' });

// Create new city 'CHI'
const chiRef = db.collection('cities').doc('CHI');
const chiRef = firestore.collection('cities').doc('CHI');
batch.create(chiRef, { name: 'Chicago', state: 'IL', country: 'USA' });

// Update the population of 'SF'
Expand Down Expand Up @@ -384,10 +384,10 @@ describe.each([
});

test('recursiveDelete', async () => {
const db = firebase.firestore();
const citiesRef = db.collection('cities');
const firestore = new this.Firestore();
const citiesRef = firestore.collection('cities');

db.recursiveDelete(citiesRef)
firestore.recursiveDelete(citiesRef)

expect(mockRecursiveDelete).toHaveBeenCalledWith(citiesRef);
});
Expand Down

0 comments on commit 39a06fd

Please sign in to comment.