1
0
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:
Michael Telatynski
2019-12-13 13:43:48 +00:00
parent b7fe06706d
commit 18f81d80db
19 changed files with 1144 additions and 77 deletions

View File

@@ -61,8 +61,6 @@ describe('GroupView', function() {
};
beforeEach(function() {
TestUtils.beforeEach(this);
httpBackend = new MockHttpBackend();
Matrix.request(httpBackend.requestFn);

View File

@@ -75,7 +75,6 @@ describe('MessagePanel', function() {
let sandbox = null;
beforeEach(function() {
test_utils.beforeEach(this);
sandbox = test_utils.stubClient();
client = MatrixClientPeg.get();
client.credentials = {userId: '@me:here'};

View File

@@ -32,7 +32,6 @@ describe('Login', function() {
let parentDiv;
beforeEach(function() {
TestUtils.beforeEach(this);
parentDiv = document.createElement('div');
document.body.appendChild(parentDiv);
});

View File

@@ -32,7 +32,6 @@ describe('Registration', function() {
let parentDiv;
beforeEach(function() {
TestUtils.beforeEach(this);
parentDiv = document.createElement('div');
document.body.appendChild(parentDiv);
});

View File

@@ -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);

View File

@@ -88,7 +88,6 @@ describe('MemberEventListSummary', function() {
};
beforeEach(function(done) {
testUtils.beforeEach(this);
sandbox = testUtils.stubClient();
languageHandler.setLanguage('en').then(done);

View File

@@ -70,8 +70,6 @@ describe("GroupMemberList", function() {
};
beforeEach(function() {
TestUtils.beforeEach(this);
httpBackend = new MockHttpBackend();
Matrix.request(httpBackend.requestFn);

View File

@@ -38,7 +38,6 @@ describe('MemberList', () => {
let defaultUsers = [];
beforeEach(function() {
TestUtils.beforeEach(this);
sandbox = TestUtils.stubClient(sandbox);
client = MatrixClientPeg.get();
client.hasLazyLoadMembersEnabled = () => false;

View File

@@ -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'};

View File

@@ -45,7 +45,6 @@ describe('RoomList', () => {
let myOtherMember;
beforeEach(function() {
TestUtils.beforeEach(this);
sandbox = TestUtils.stubClient(sandbox);
client = MatrixClientPeg.get();
client.credentials = {userId: myUserId};

View File

@@ -36,7 +36,6 @@
// }
//
// beforeEach(function(done) {
// testUtils.beforeEach(this);
// sandbox = testUtils.stubClient();
// client = MatrixClientPeg.get();
// client.credentials = {userId: '@me:domain.com'};