gitlab-org--gitlab-foss/spec/frontend/helpers/set_timeout_promise_helper.js
Winnie Hellmann 2e7486681a Copy missing helpers from Karma to Jest
Copy missing helpers from Karma to Jest
2019-03-28 20:07:40 +01:00

4 lines
93 B
JavaScript

export default (time = 0) =>
new Promise(resolve => {
setTimeout(resolve, time);
});