Merge branch 'develop' into new-guest-access
This commit is contained in:
commit
5c885922d9
90 changed files with 5814 additions and 831 deletions
|
@ -22,7 +22,7 @@ import ReactTestUtils from 'react-addons-test-utils';
|
|||
import sinon from 'sinon';
|
||||
|
||||
import sdk from 'matrix-react-sdk';
|
||||
import MatrixClientPeg from 'MatrixClientPeg';
|
||||
import MatrixClientPeg from '../../../../src/MatrixClientPeg';
|
||||
|
||||
import * as test_utils from '../../../test-utils';
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ const ReactDOM = require("react-dom");
|
|||
const ReactTestUtils = require('react-addons-test-utils');
|
||||
const sdk = require('matrix-react-sdk');
|
||||
const MemberEventListSummary = sdk.getComponent('views.elements.MemberEventListSummary');
|
||||
import * as languageHandler from '../../../../src/languageHandler';
|
||||
|
||||
const testUtils = require('../../../test-utils');
|
||||
describe('MemberEventListSummary', function() {
|
||||
|
@ -82,9 +83,11 @@ describe('MemberEventListSummary', function() {
|
|||
return eventsForUsers;
|
||||
};
|
||||
|
||||
beforeEach(function() {
|
||||
beforeEach(function(done) {
|
||||
testUtils.beforeEach(this);
|
||||
sandbox = testUtils.stubClient();
|
||||
|
||||
languageHandler.setLanguage('en').done(done);
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
|
@ -356,7 +359,7 @@ describe('MemberEventListSummary', function() {
|
|||
const summaryText = summary.innerText;
|
||||
|
||||
expect(summaryText).toBe(
|
||||
"user_1 and 1 other were unbanned, joined and left 2 times and were banned"
|
||||
"user_1 and one other were unbanned, joined and left 2 times and were banned"
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -559,7 +562,7 @@ describe('MemberEventListSummary', function() {
|
|||
const summaryText = summary.innerText;
|
||||
|
||||
expect(summaryText).toBe(
|
||||
"user_1 and 1 other rejected their invitations and " +
|
||||
"user_1 and one other rejected their invitations and " +
|
||||
"had their invitations withdrawn"
|
||||
);
|
||||
});
|
||||
|
@ -595,7 +598,7 @@ describe('MemberEventListSummary', function() {
|
|||
const summaryText = summary.innerText;
|
||||
|
||||
expect(summaryText).toBe(
|
||||
"user_1 rejected their invitations 2 times"
|
||||
"user_1 rejected their invitation 2 times"
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -650,7 +653,7 @@ describe('MemberEventListSummary', function() {
|
|||
const summaryText = summary.innerText;
|
||||
|
||||
expect(summaryText).toBe(
|
||||
"user_1, user_2 and 1 other joined"
|
||||
"user_1, user_2 and one other joined"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import * as testUtils from '../../../test-utils';
|
|||
import sdk from 'matrix-react-sdk';
|
||||
import UserSettingsStore from '../../../../src/UserSettingsStore';
|
||||
const MessageComposerInput = sdk.getComponent('views.rooms.MessageComposerInput');
|
||||
import MatrixClientPeg from 'MatrixClientPeg';
|
||||
import MatrixClientPeg from '../../../../src/MatrixClientPeg';
|
||||
|
||||
function addTextToDraft(text) {
|
||||
const components = document.getElementsByClassName('public-DraftEditor-content');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue