We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5297d47 commit 867d9c0Copy full SHA for 867d9c0
packages/firestore/lite/test/integration.test.ts
@@ -43,4 +43,17 @@ describe('Firestore', () => {
43
const fs2 = getFirestore(app);
44
expect(fs1 === fs2).to.be.true;
45
});
46
+
47
+ it('cannot call initializeFirestore() twice', () => {
48
+ const app = initializeApp(
49
+ { apiKey: 'fake-api-key', projectId: 'test-project' },
50
+ 'test-app-initializeFirestore-twice'
51
+ );
52
+ initializeFirestore(app, { host: 'localhost', ssl: false });
53
+ expect(() => {
54
55
+ }).to.throw(
56
+ 'Firestore has already been started and its settings can no longer be changed.'
57
58
+ });
59
0 commit comments