From 40b3b0f656c6c36ffb72770ce40808080a6e66ab Mon Sep 17 00:00:00 2001 From: Tom Andersen Date: Mon, 16 Oct 2023 11:54:37 -0400 Subject: [PATCH] Add more named db test verification. (#7695) * Add more named db test verification. * Changeset --- .changeset/flat-eagles-obey.md | 2 ++ packages/firestore/test/integration/api/provider.test.ts | 7 +++++++ 2 files changed, 9 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 @@ +--- +--- 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);