@@ -13,7 +13,7 @@ import { expect } from "vitest";
1313import { connectorConfig } from "@/dataconnect/default-connector" ;
1414
1515const firebaseTestingOptions = {
16- projectId : "test-project" ,
16+ projectId : "demo- test-project" ,
1717 apiKey : "test-api-key" ,
1818 authDomain : "test-auth-domain" ,
1919} ;
@@ -32,16 +32,16 @@ if (!firebaseApp) {
3232 connectDataConnectEmulator (
3333 getDataConnect ( connectorConfig ) ,
3434 "localhost" ,
35- 9399 ,
35+ 9399
3636 ) ;
3737}
3838
3939async function wipeFirestore ( ) {
4040 const response = await fetch (
41- "http://localhost:8080/emulator/v1/projects/test-project/databases/(default)/documents" ,
41+ "http://localhost:8080/emulator/v1/projects/demo- test-project/databases/(default)/documents" ,
4242 {
4343 method : "DELETE" ,
44- } ,
44+ }
4545 ) ;
4646
4747 if ( ! response . ok ) {
@@ -51,10 +51,10 @@ async function wipeFirestore() {
5151
5252async function wipeAuth ( ) {
5353 const response = await fetch (
54- "http://localhost:9099/emulator/v1/projects/test-project/accounts" ,
54+ "http://localhost:9099/emulator/v1/projects/demo- test-project/accounts" ,
5555 {
5656 method : "DELETE" ,
57- } ,
57+ }
5858 ) ;
5959
6060 if ( ! response . ok ) {
@@ -69,7 +69,7 @@ function expectFirestoreError(error: unknown, expectedCode: string) {
6969 expect ( error . code ) . toBe ( expectedCode ) ;
7070 } else {
7171 throw new Error (
72- "Expected a Firestore error, but received a different type." ,
72+ "Expected a Firestore error, but received a different type."
7373 ) ;
7474 }
7575}
@@ -88,7 +88,7 @@ function expectFirebaseError(error: unknown, expectedCode: string) {
8888 : error ,
8989 } ) ;
9090 throw new Error (
91- "Expected a Firebase error, but received a different type." ,
91+ "Expected a Firebase error, but received a different type."
9292 ) ;
9393 }
9494}
0 commit comments