1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-09 08:42:50 +03:00

Remove lolex where its not needed and move to dev-deps. Remove unused optimist

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2020-01-18 01:39:14 +00:00
parent 8ba54f5f7d
commit 9365a9cb30
4 changed files with 24 additions and 16 deletions

View File

@@ -15,7 +15,6 @@ limitations under the License.
*/
import lolex from 'lolex';
import jest from 'jest-mock';
import EventEmitter from 'events';
import UserActivity from '../src/UserActivity';
@@ -36,8 +35,8 @@ describe('UserActivity', function() {
let clock;
beforeEach(function() {
fakeWindow = new FakeDomEventEmitter(),
fakeDocument = new FakeDomEventEmitter(),
fakeWindow = new FakeDomEventEmitter();
fakeDocument = new FakeDomEventEmitter();
userActivity = new UserActivity(fakeWindow, fakeDocument);
userActivity.start();
clock = lolex.install();

View File

@@ -1,7 +1,6 @@
import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import ReactDOM from 'react-dom';
import lolex from 'lolex';
import * as TestUtils from '../../../test-utils';
@@ -27,7 +26,6 @@ describe('MemberList', () => {
let parentDiv = null;
let client = null;
let root = null;
let clock = null;
let memberListRoom;
let memberList = null;
@@ -40,8 +38,6 @@ describe('MemberList', () => {
client = MatrixClientPeg.get();
client.hasLazyLoadMembersEnabled = () => false;
clock = lolex.install();
parentDiv = document.createElement('div');
document.body.appendChild(parentDiv);
@@ -114,8 +110,6 @@ describe('MemberList', () => {
parentDiv = null;
}
clock.uninstall();
done();
});