mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-07-10 13:17:13 -06:00
just a few more todo items
This commit is contained in:
18
src/TestingTools/fakeDelay.js
Normal file
18
src/TestingTools/fakeDelay.js
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
function fakeDelay(ms) {
|
||||
/*
|
||||
useful for testing allows for a fake response, allow us to see what the program does while waiting for data from the backend
|
||||
REQUIRES:
|
||||
time in milliseconds
|
||||
|
||||
needs a line like this to run
|
||||
await fakeDelay(5000);
|
||||
PROMISES:
|
||||
nothing
|
||||
Develop in part by: Brock
|
||||
Contact: darkicewolf50@gmial.com
|
||||
*/
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
export default fakeDelay;
|
Reference in New Issue
Block a user