mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-27 10:24:48 +10:00
Builder tests: added test for loading screen
This commit is contained in:
@@ -149,7 +149,7 @@ class Reference {
|
||||
|
||||
const debouncedEventCallback = debounce(
|
||||
this.eventCallbacks[eventType],
|
||||
100,
|
||||
DatabaseConstants.defaultDelayInMilliseconds,
|
||||
);
|
||||
debouncedEventCallback(snapshot);
|
||||
}
|
||||
@@ -183,6 +183,10 @@ class Reference {
|
||||
throw new Error('eventType should be a string.');
|
||||
}
|
||||
|
||||
await new Promise((resolve) =>
|
||||
setTimeout(resolve, DatabaseConstants.defaultDelayInMilliseconds),
|
||||
);
|
||||
|
||||
return Promise.resolve(this._dataSnapshot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user