Firebase Stub: introduced a delay in all async functions to better mimic real Firebase

This commit is contained in:
gianantoniopini
2021-01-21 16:45:33 +01:00
parent 562a07619c
commit af966bdf7b
6 changed files with 42 additions and 18 deletions

View File

@ -14,6 +14,8 @@ const anonymousUser2 = {
uid: 'anonym456',
};
const defaultDelayInMilliseconds = 100;
class Auth {
static get anonymousUser1() {
return anonymousUser1;
@ -22,6 +24,10 @@ class Auth {
static get anonymousUser2() {
return anonymousUser2;
}
static get defaultDelayInMilliseconds() {
return defaultDelayInMilliseconds;
}
}
export default Auth;