Skip to content

Commit 0fb56e1

Browse files
Fix test build
1 parent 07dfa9f commit 0fb56e1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/firestore/test/util/api_helpers.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import { doc, key, path as pathFrom } from './helpers';
4242
import { Provider, ComponentContainer } from '@firebase/component';
4343
import { TEST_PROJECT } from '../unit/local/persistence_test_helpers';
4444
import { FirebaseFirestore } from '../../exp/src/api/database';
45+
import { DatabaseId } from '../../src/core/database_info';
4546

4647
/**
4748
* A mock Firestore. Will not work for integration test.
@@ -53,14 +54,10 @@ export function firestore(): Firestore {
5354
}
5455

5556
export function newTestFirestore(projectId = 'new-project'): Firestore {
56-
const firestoreDatabase = {
57-
projectId,
58-
database: '(default)'
59-
};
6057
return new Firestore(
61-
firestoreDatabase,
58+
new DatabaseId(projectId),
6259
new FirebaseFirestore(
63-
firestoreDatabase,
60+
new DatabaseId(projectId),
6461
new Provider('auth-internal', new ComponentContainer('default'))
6562
),
6663
new IndexedDbPersistenceProvider()

0 commit comments

Comments
 (0)