mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-22 20:51:29 +10:00
Delete Account: started adding unit tests
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
import Auth from './gatsby-plugin-firebase/auth/auth';
|
||||
import Database from './gatsby-plugin-firebase/database/database';
|
||||
import Functions from './gatsby-plugin-firebase/functions/functions';
|
||||
import AuthConstants from './gatsby-plugin-firebase/constants/auth';
|
||||
import DatabaseConstants from './gatsby-plugin-firebase/constants/database';
|
||||
import FunctionsConstants from './gatsby-plugin-firebase/constants/functions';
|
||||
|
||||
class FirebaseStub {
|
||||
static auth() {
|
||||
@ -11,6 +13,10 @@ class FirebaseStub {
|
||||
static database() {
|
||||
return Database.instance;
|
||||
}
|
||||
|
||||
static functions() {
|
||||
return Functions.instance;
|
||||
}
|
||||
}
|
||||
|
||||
FirebaseStub.database.ServerValue = {};
|
||||
@ -21,4 +27,4 @@ Object.defineProperty(FirebaseStub.database.ServerValue, 'TIMESTAMP', {
|
||||
});
|
||||
|
||||
export default FirebaseStub;
|
||||
export { AuthConstants, DatabaseConstants };
|
||||
export { AuthConstants, DatabaseConstants, FunctionsConstants };
|
||||
|
||||
Reference in New Issue
Block a user