s/.done(/.then(/ since modern es6 track unhandled promise exceptions
This commit is contained in:
parent
0a21957b2c
commit
09a8fec261
43 changed files with 74 additions and 72 deletions
|
@ -8,6 +8,7 @@ import * as testUtils from '../../../test-utils';
|
|||
import sdk from 'matrix-react-sdk';
|
||||
const MessageComposerInput = sdk.getComponent('views.rooms.MessageComposerInput');
|
||||
import MatrixClientPeg from '../../../../src/MatrixClientPeg';
|
||||
import {sleep} from "../../../../src/utils/promise";
|
||||
|
||||
function addTextToDraft(text) {
|
||||
const components = document.getElementsByClassName('public-DraftEditor-content');
|
||||
|
@ -49,7 +50,7 @@ xdescribe('MessageComposerInput', () => {
|
|||
// warnings
|
||||
// (please can we make the components not setState() after
|
||||
// they are unmounted?)
|
||||
Promise.delay(10).done(() => {
|
||||
sleep(10).then(() => {
|
||||
if (parentDiv) {
|
||||
ReactDOM.unmountComponentAtNode(parentDiv);
|
||||
parentDiv.remove();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue