Fix failing test

DOM styles are strings, not numbers
This commit is contained in:
Richard van der Hoff 2016-03-31 01:01:49 +01:00
parent ec8fecb953
commit 3ba7f9f23a

View file

@ -112,7 +112,6 @@ describe('MessagePanel', function () {
eventContainer = ReactDOM.findDOMNode(tiles[4]).parentNode;
expect(ghost.previousSibling).toEqual(eventContainer);
var hr = ghost.children[0];
console.log("Opacity:", hr.style.opacity);
// the first should be the ghost
eventContainer = ReactDOM.findDOMNode(tiles[4]).parentNode;
@ -131,7 +130,7 @@ describe('MessagePanel', function () {
clock.tick(1000);
realSetTimeout(() => {
// the ghost should now have finished
expect(hr.style.opacity).toEqual(0);
expect(hr.style.opacity).toEqual('0');
done();
}, 100);
}, 100);