Skip to content

Commit 0c87e13

Browse files
committed
Changed debug statement
1 parent c0502c8 commit 0c87e13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/firestore/firestore-admin.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)