Disable velocity mock option
This appears to have been removed in the beta
This commit is contained in:
parent
76ad93b937
commit
0dd4d45c49
1 changed files with 0 additions and 9 deletions
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue