Skip to content

Commit

Permalink
Add more named db test verification. (#7695)
Browse files Browse the repository at this point in the history
* Add more named db test verification.

* Changeset
  • Loading branch information
tom-andersen authored Oct 16, 2023
1 parent 3533b32 commit 40b3b0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/flat-eagles-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
7 changes: 7 additions & 0 deletions packages/firestore/test/integration/api/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ describe('Firestore Provider', () => {
const fs3 = getFirestore(app);
const fs4 = getFirestore(app, 'name1');
const fs5 = getFirestore(app, 'name2');

expect(fs1._databaseId.database).to.be.equal('init1');
expect(fs2._databaseId.database).to.be.equal('init2');
expect(fs3._databaseId.database).to.be.equal('(default)');
expect(fs4._databaseId.database).to.be.equal('name1');
expect(fs5._databaseId.database).to.be.equal('name2');

expect(fs1).to.not.be.equal(fs2);
expect(fs1).to.not.be.equal(fs3);
expect(fs1).to.not.be.equal(fs4);
Expand Down

0 comments on commit 40b3b0f

Please sign in to comment.