Fix more tests
This commit is contained in:
parent
ab3fb6581b
commit
e6d8487302
11 changed files with 42 additions and 884 deletions
|
@ -84,13 +84,8 @@ describe('MemberEventListSummary', function() {
|
|||
return eventsForUsers;
|
||||
};
|
||||
|
||||
beforeEach(function(done) {
|
||||
beforeEach(function() {
|
||||
testUtils.stubClient();
|
||||
|
||||
languageHandler.setLanguage('en').then(done);
|
||||
languageHandler.setMissingEntryGenerator(function(key) {
|
||||
return key.split('|', 2)[1];
|
||||
});
|
||||
});
|
||||
|
||||
it('renders expanded events if there are less than props.threshold', function() {
|
||||
|
|
|
@ -24,6 +24,7 @@ import sdk from "../../../skinned-sdk";
|
|||
import Matrix from "matrix-js-sdk";
|
||||
|
||||
import * as TestUtils from "../../../test-utils";
|
||||
import * as languageHandler from "../../../../src/languageHandler";
|
||||
const { waitForUpdate } = TestUtils;
|
||||
|
||||
const GroupMemberList = sdk.getComponent("views.groups.GroupMemberList");
|
||||
|
|
|
@ -5,7 +5,7 @@ import lolex from 'lolex';
|
|||
|
||||
import * as TestUtils from '../../../test-utils';
|
||||
|
||||
import sdk from '../../../../src/index';
|
||||
import sdk from '../../../skinned-sdk';
|
||||
import MatrixClientPeg from '../../../../src/MatrixClientPeg';
|
||||
|
||||
import {Room, RoomMember, User} from 'matrix-js-sdk';
|
||||
|
|
|
@ -5,7 +5,7 @@ import lolex from 'lolex';
|
|||
|
||||
import * as TestUtils from '../../../test-utils';
|
||||
|
||||
import sdk from '../../../../src/index';
|
||||
import sdk from '../../../skinned-sdk';
|
||||
import MatrixClientPeg from '../../../../src/MatrixClientPeg';
|
||||
import { DragDropContext } from 'react-beautiful-dnd';
|
||||
|
||||
|
@ -177,7 +177,7 @@ describe('RoomList', () => {
|
|||
|
||||
function itDoesCorrectOptimisticUpdatesForDraggedRoomTiles() {
|
||||
// TODO: Re-enable dragging tests when we support dragging again.
|
||||
xdescribe('does correct optimistic update when dragging from', () => {
|
||||
describe.skip('does correct optimistic update when dragging from', () => {
|
||||
it('rooms to people', () => {
|
||||
expectCorrectMove(undefined, 'im.vector.fake.direct');
|
||||
});
|
||||
|
|
|
@ -4,12 +4,13 @@ import ReactDOM from 'react-dom';
|
|||
import jest from 'jest-mock';
|
||||
import * as testUtils from '../../../test-utils';
|
||||
import sdk from '../../../skinned-sdk';
|
||||
const WrappedRoomSettings = testUtils.wrapInMatrixClientContext(sdk.getComponent('views.rooms.RoomSettings'));
|
||||
import MatrixClientPeg from '../../../../src/MatrixClientPeg';
|
||||
import SettingsStore from '../../../../src/settings/SettingsStore';
|
||||
|
||||
|
||||
describe.skip('RoomSettings', () => {
|
||||
const WrappedRoomSettings = testUtils.wrapInMatrixClientContext(sdk.getComponent('views.rooms.RoomSettings'));
|
||||
|
||||
let parentDiv = null;
|
||||
let client = null;
|
||||
let roomSettings = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue