File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/firestore/exp/test Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ export async function withTestDbSettings(
45
45
return fn ( firestore ) ;
46
46
}
47
47
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
+
48
54
export function withTestCollection (
49
55
fn : ( collRef : firestore . CollectionReference ) => void | Promise < void >
50
56
) : Promise < void > {
@@ -53,12 +59,6 @@ export function withTestCollection(
53
59
} ) ;
54
60
}
55
61
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
-
62
62
export function withTestDoc (
63
63
fn : ( doc : firestore . DocumentReference ) => void | Promise < void >
64
64
) : Promise < void > {
You can’t perform that action at this time.
0 commit comments