element-plus/packages/test-utils/sleep.ts

4 lines
100 B
TypeScript
Raw Normal View History

2020-09-02 17:44:14 +08:00
const sleep = (time = 0) => new Promise(resolve => setTimeout(resolve, time))
export default sleep