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