mattermost-desktop/test/modules/utils.js

16 lines
321 B
JavaScript
Raw Normal View History

// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
function asyncSleep(timeout) {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, timeout);
});
}
module.exports = {
asyncSleep,
};