1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-06-15 03:35:16 +00:00

fixed test assertions

This commit is contained in:
Nicolas Bevacqua 2016-02-05 13:23:30 -03:00
parent 90834d4481
commit 943bdd6e05

View File

@ -442,7 +442,7 @@ wru.test([{
div.firstChild.className === 'emoji' && div.firstChild.className === 'emoji' &&
div.firstChild.getAttribute('draggable') === 'false' && div.firstChild.getAttribute('draggable') === 'false' &&
div.firstChild.getAttribute('alt') === "5⃣" && div.firstChild.getAttribute('alt') === "5⃣" &&
div.firstChild.src === 'http://twemoji.maxcdn.com/36x36/35-20e3.png' div.firstChild.src === 'https://twemoji.maxcdn.com/36x36/35-20e3.png'
); );
wru.assert('the length is preserved', wru.assert('the length is preserved',
div.getElementsByTagName('img')[0].alt.length === 3); div.getElementsByTagName('img')[0].alt.length === 3);
@ -457,7 +457,7 @@ wru.test([{
div.firstChild.className === 'emoji' && div.firstChild.className === 'emoji' &&
div.firstChild.getAttribute('draggable') === 'false' && div.firstChild.getAttribute('draggable') === 'false' &&
div.firstChild.getAttribute('alt') === "5⃣" && div.firstChild.getAttribute('alt') === "5⃣" &&
div.firstChild.src === 'http://twemoji.maxcdn.com/36x36/35-20e3.png' div.firstChild.src === 'https://twemoji.maxcdn.com/36x36/35-20e3.png'
); );
wru.assert('the length is preserved', wru.assert('the length is preserved',
div.getElementsByTagName('img')[0].alt.length === 2); div.getElementsByTagName('img')[0].alt.length === 2);