You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Disable velocity mock option
This appears to have been removed in the beta
This commit is contained in:
@ -35,7 +35,6 @@ const mockclock = require('../../mock-clock');
|
|||||||
import Adapter from "enzyme-adapter-react-16";
|
import Adapter from "enzyme-adapter-react-16";
|
||||||
import { configure, mount } from "enzyme";
|
import { configure, mount } from "enzyme";
|
||||||
|
|
||||||
import Velocity from 'velocity-animate';
|
|
||||||
import MatrixClientContext from "../../../src/contexts/MatrixClientContext";
|
import MatrixClientContext from "../../../src/contexts/MatrixClientContext";
|
||||||
import RoomContext from "../../../src/contexts/RoomContext";
|
import RoomContext from "../../../src/contexts/RoomContext";
|
||||||
import DMRoomMap from "../../../src/utils/DMRoomMap";
|
import DMRoomMap from "../../../src/utils/DMRoomMap";
|
||||||
@ -75,18 +74,10 @@ describe('MessagePanel', function() {
|
|||||||
return arg === "showDisplaynameChanges";
|
return arg === "showDisplaynameChanges";
|
||||||
});
|
});
|
||||||
|
|
||||||
// This option clobbers the duration of all animations to be 1ms
|
|
||||||
// which makes unit testing a lot simpler (the animation doesn't
|
|
||||||
// complete without this even if we mock the clock and tick it
|
|
||||||
// what should be the correct amount of time).
|
|
||||||
Velocity.mock = true;
|
|
||||||
|
|
||||||
DMRoomMap.makeShared();
|
DMRoomMap.makeShared();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function() {
|
afterEach(function() {
|
||||||
delete Velocity.mock;
|
|
||||||
|
|
||||||
clock.uninstall();
|
clock.uninstall();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user