Fix or skip broken tests
When there is navigation with #btnClose, all APIs would fail. So such tests are marked as "skipped".
This commit is contained in:
16
test/modules/utils.js
Normal file
16
test/modules/utils.js
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
// 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,
|
||||
};
|
Reference in New Issue
Block a user