Delete Account unit tests: added tests related to Google reauthentication

This commit is contained in:
gianantoniopini
2021-05-20 15:57:01 +02:00
parent 7cb469657d
commit 9e63d0b2c7
18 changed files with 363 additions and 56 deletions

View File

@ -1,4 +1,5 @@
import Auth from './gatsby-plugin-firebase/auth/auth';
import GoogleAuthProvider from './gatsby-plugin-firebase/auth/googleAuthProvider';
import Database from './gatsby-plugin-firebase/database/database';
import Functions from './gatsby-plugin-firebase/functions/functions';
import AuthConstants from './gatsby-plugin-firebase/constants/auth';
@ -19,6 +20,8 @@ class FirebaseStub {
}
}
FirebaseStub.auth.GoogleAuthProvider = GoogleAuthProvider;
FirebaseStub.database.ServerValue = {};
Object.defineProperty(FirebaseStub.database.ServerValue, 'TIMESTAMP', {
get() {