From 75b32e1411b32153ad777e736ea2598a83f21bc8 Mon Sep 17 00:00:00 2001 From: Tom Andersen Date: Thu, 12 Oct 2023 10:04:34 -0400 Subject: [PATCH 1/2] Add more named db test verification. --- packages/firestore/test/integration/api/provider.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/firestore/test/integration/api/provider.test.ts b/packages/firestore/test/integration/api/provider.test.ts index 04a148bf987..cc7888a5385 100644 --- a/packages/firestore/test/integration/api/provider.test.ts +++ b/packages/firestore/test/integration/api/provider.test.ts @@ -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); From 341cb32143fea256534b50b3997c2e88b82b2cff Mon Sep 17 00:00:00 2001 From: Tom Andersen Date: Fri, 13 Oct 2023 10:24:32 -0400 Subject: [PATCH 2/2] Changeset --- .changeset/flat-eagles-obey.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changeset/flat-eagles-obey.md diff --git a/.changeset/flat-eagles-obey.md b/.changeset/flat-eagles-obey.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/flat-eagles-obey.md @@ -0,0 +1,2 @@ +--- +---