Skip to content

Commit 1238893

Browse files
Re-order
1 parent fd4f479 commit 1238893

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/firestore/exp/test/helpers.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export async function withTestDbSettings(
4545
return fn(firestore);
4646
}
4747

48+
export function withTestDb(
49+
fn: (db: firestore.FirebaseFirestore) => void | Promise<void>
50+
): Promise<void> {
51+
return withTestDbSettings(DEFAULT_PROJECT_ID, DEFAULT_SETTINGS, fn);
52+
}
53+
4854
export function withTestCollection(
4955
fn: (collRef: firestore.CollectionReference) => void | Promise<void>
5056
): Promise<void> {
@@ -53,12 +59,6 @@ export function withTestCollection(
5359
});
5460
}
5561

56-
export function withTestDb(
57-
fn: (db: firestore.FirebaseFirestore) => void | Promise<void>
58-
): Promise<void> {
59-
return withTestDbSettings(DEFAULT_PROJECT_ID, DEFAULT_SETTINGS, fn);
60-
}
61-
6262
export function withTestDoc(
6363
fn: (doc: firestore.DocumentReference) => void | Promise<void>
6464
): Promise<void> {

0 commit comments

Comments
 (0)