Merge branch 'develop' into bwindels/bacat-scrolling
This commit is contained in:
commit
494779393f
42 changed files with 860 additions and 212 deletions
|
@ -32,6 +32,8 @@ import Matrix from 'matrix-js-sdk';
|
|||
const test_utils = require('test-utils');
|
||||
const mockclock = require('mock-clock');
|
||||
|
||||
import Velocity from 'velocity-animate';
|
||||
|
||||
let client;
|
||||
const room = new Matrix.Room();
|
||||
|
||||
|
@ -72,9 +74,17 @@ describe('MessagePanel', function() {
|
|||
|
||||
// HACK: We assume all settings want to be disabled
|
||||
SettingsStore.getValue = sinon.stub().returns(false);
|
||||
|
||||
// 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;
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
delete Velocity.mock;
|
||||
|
||||
clock.uninstall();
|
||||
sandbox.restore();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue