Fix failing test
DOM styles are strings, not numbers
This commit is contained in:
parent
ec8fecb953
commit
3ba7f9f23a
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue