You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Initial jest stuff. Blocked on Babel 7
This commit is contained in:
@@ -36,7 +36,6 @@ describe('InteractiveAuthDialog', function() {
|
||||
let sandbox;
|
||||
|
||||
beforeEach(function() {
|
||||
test_utils.beforeEach(this);
|
||||
sandbox = test_utils.stubClient(sandbox);
|
||||
parentDiv = document.createElement('div');
|
||||
document.body.appendChild(parentDiv);
|
||||
|
@@ -88,7 +88,6 @@ describe('MemberEventListSummary', function() {
|
||||
};
|
||||
|
||||
beforeEach(function(done) {
|
||||
testUtils.beforeEach(this);
|
||||
sandbox = testUtils.stubClient();
|
||||
|
||||
languageHandler.setLanguage('en').then(done);
|
||||
|
@@ -70,8 +70,6 @@ describe("GroupMemberList", function() {
|
||||
};
|
||||
|
||||
beforeEach(function() {
|
||||
TestUtils.beforeEach(this);
|
||||
|
||||
httpBackend = new MockHttpBackend();
|
||||
|
||||
Matrix.request(httpBackend.requestFn);
|
||||
|
@@ -38,7 +38,6 @@ describe('MemberList', () => {
|
||||
let defaultUsers = [];
|
||||
|
||||
beforeEach(function() {
|
||||
TestUtils.beforeEach(this);
|
||||
sandbox = TestUtils.stubClient(sandbox);
|
||||
client = MatrixClientPeg.get();
|
||||
client.hasLazyLoadMembersEnabled = () => false;
|
||||
|
@@ -29,7 +29,6 @@ xdescribe('MessageComposerInput', () => {
|
||||
room = testUtils.mkStubRoom('!DdJkzRliezrwpNebLk:matrix.org');
|
||||
|
||||
beforeEach(function() {
|
||||
testUtils.beforeEach(this);
|
||||
sandbox = testUtils.stubClient(sandbox);
|
||||
client = MatrixClientPeg.get();
|
||||
client.credentials = {userId: '@me:domain.com'};
|
||||
|
@@ -45,7 +45,6 @@ describe('RoomList', () => {
|
||||
let myOtherMember;
|
||||
|
||||
beforeEach(function() {
|
||||
TestUtils.beforeEach(this);
|
||||
sandbox = TestUtils.stubClient(sandbox);
|
||||
client = MatrixClientPeg.get();
|
||||
client.credentials = {userId: myUserId};
|
||||
|
@@ -36,7 +36,6 @@
|
||||
// }
|
||||
//
|
||||
// beforeEach(function(done) {
|
||||
// testUtils.beforeEach(this);
|
||||
// sandbox = testUtils.stubClient();
|
||||
// client = MatrixClientPeg.get();
|
||||
// client.credentials = {userId: '@me:domain.com'};
|
||||
|
Reference in New Issue
Block a user