mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 01:01:43 +10:00
Firebase Stub: introduced a delay in all async functions to better mimic real Firebase
This commit is contained in:
5
__mocks__/gatsby-plugin-firebase/utils/index.js
Normal file
5
__mocks__/gatsby-plugin-firebase/utils/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
const delay = async (milliseconds) => {
|
||||
await new Promise((resolve) => setTimeout(resolve, milliseconds));
|
||||
};
|
||||
|
||||
export default delay;
|
||||
Reference in New Issue
Block a user