From 3ba7f9f23affa44d3130ba07fb53a8b46c7ab388 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 31 Mar 2016 01:01:49 +0100 Subject: [PATCH] Fix failing test DOM styles are strings, not numbers --- test/components/structures/MessagePanel-test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/components/structures/MessagePanel-test.js b/test/components/structures/MessagePanel-test.js index 37b79a8f0a..3e984e8134 100644 --- a/test/components/structures/MessagePanel-test.js +++ b/test/components/structures/MessagePanel-test.js @@ -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);