From d604d6e1de139ef0a4a05138bdad37d2c69f0020 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Sat, 29 Apr 2023 16:16:56 +0900 Subject: [PATCH] remove firease test --- test/firebase.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 test/firebase.js diff --git a/test/firebase.js b/test/firebase.js deleted file mode 100755 index 38c31b4..0000000 --- a/test/firebase.js +++ /dev/null @@ -1,22 +0,0 @@ -require("dotenv").config(); - -const firebase_admin = require("firebase-admin"); -const { getDatabase } = require("firebase-admin/database"); -const serviceAccount = require("../firebase/conf.json"); -if (!firebase_admin.apps.length) { - firebase_admin.initializeApp({ - credential: firebase_admin.credential.cert(serviceAccount), - databaseURL: process.env.FIREBASE_URL, - databaseAuthVariableOverride: { - uid: process.env.FIREBASE_UID, - }, - }); -} -const firebase = getDatabase().ref("/"); - -// firebase.set(); -// (await firebase.get()).val(); - -(async () => { - console.log((await firebase.get()).val()); -})();