You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Fix failing test
DOM styles are strings, not numbers
This commit is contained in:
@ -112,7 +112,6 @@ describe('MessagePanel', function () {
|
|||||||
eventContainer = ReactDOM.findDOMNode(tiles[4]).parentNode;
|
eventContainer = ReactDOM.findDOMNode(tiles[4]).parentNode;
|
||||||
expect(ghost.previousSibling).toEqual(eventContainer);
|
expect(ghost.previousSibling).toEqual(eventContainer);
|
||||||
var hr = ghost.children[0];
|
var hr = ghost.children[0];
|
||||||
console.log("Opacity:", hr.style.opacity);
|
|
||||||
|
|
||||||
// the first should be the ghost
|
// the first should be the ghost
|
||||||
eventContainer = ReactDOM.findDOMNode(tiles[4]).parentNode;
|
eventContainer = ReactDOM.findDOMNode(tiles[4]).parentNode;
|
||||||
@ -131,7 +130,7 @@ describe('MessagePanel', function () {
|
|||||||
clock.tick(1000);
|
clock.tick(1000);
|
||||||
realSetTimeout(() => {
|
realSetTimeout(() => {
|
||||||
// the ghost should now have finished
|
// the ghost should now have finished
|
||||||
expect(hr.style.opacity).toEqual(0);
|
expect(hr.style.opacity).toEqual('0');
|
||||||
done();
|
done();
|
||||||
}, 100);
|
}, 100);
|
||||||
}, 100);
|
}, 100);
|
||||||
|
Reference in New Issue
Block a user