mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 16:51:33 +10:00
Firebase mock: fixed issue with database namespace
This commit is contained in:
@ -124,7 +124,7 @@ const database = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.resolve();
|
return Promise.resolve(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
const update = async (value) => {
|
const update = async (value) => {
|
||||||
@ -138,7 +138,7 @@ const database = () => {
|
|||||||
|
|
||||||
__databaseRefUpdateCalls.push(value);
|
__databaseRefUpdateCalls.push(value);
|
||||||
|
|
||||||
return Promise.resolve();
|
return Promise.resolve(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -149,20 +149,20 @@ const database = () => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const ServerValue = {
|
|
||||||
TIMESTAMP: Date.now(),
|
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
__demoResumeId,
|
__demoResumeId,
|
||||||
__emptyResumeId,
|
__emptyResumeId,
|
||||||
__init,
|
__init,
|
||||||
ref,
|
ref,
|
||||||
ServerValue,
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
database.ServerValue = {
|
||||||
auth,
|
TIMESTAMP: Date.now(),
|
||||||
database,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default class firebase {
|
||||||
|
static auth = auth;
|
||||||
|
|
||||||
|
static database = database;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user