File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ describe('Firestore admin', () => {
4343
4444 before ( ( ) => {
4545 configDotenv ( { path : 'test/.env.test' } ) ;
46+ if ( process . env . FIREBASE_PRIVATE_KEY === undefined )
47+ throw new Error ( 'FIREBASE_PRIVATE_KEY is not set' ) ;
48+ console . log ( BytesCoder . toHex ( new Sha512 ( ) . hash ( BytesCoder . fromUtf8 ( process . env . FIREBASE_PRIVATE_KEY ) ) ) ) ;
4649 initializeApp ( {
4750 credential : cert ( {
4851 projectId : process . env . FIREBASE_PROJECT_ID ,
@@ -53,9 +56,6 @@ describe('Firestore admin', () => {
5356 } ) ;
5457 process . env . FIRESTORE_EMULATOR_HOST = '127.0.0.1:8080' ;
5558 baseDocument = FirestoreDocument . base ( getFirestore ( ) ) ;
56- if ( process . env . FIREBASE_PRIVATE_KEY === undefined )
57- throw new Error ( 'FIREBASE_PRIVATE_KEY is not set' ) ;
58- console . log ( BytesCoder . toHex ( new Sha512 ( ) . hash ( BytesCoder . fromUtf8 ( process . env . FIREBASE_PRIVATE_KEY ) ) ) ) ;
5959 } ) ;
6060
6161 afterEach ( async ( ) => {
You can’t perform that action at this time.
0 commit comments