aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/test-timeout.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/test-timeout.js')
-rw-r--r--ui/lib/test-timeout.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/lib/test-timeout.js b/ui/lib/test-timeout.js
new file mode 100644
index 000000000..957b0fce2
--- /dev/null
+++ b/ui/lib/test-timeout.js
@@ -0,0 +1,5 @@
+export default function timeout (time) {
+ return new Promise((resolve, reject) => {
+ setTimeout(resolve, time || 1500)
+ })
+}