Make sure div is always removed after tests. (#705)

This commit is contained in:
Brian Nenninger
2016-06-17 14:28:50 -04:00
committed by Jeremy Elbourn
parent 497a3c147f
commit c400fa2fa9
@@ -46,6 +46,7 @@ describe('ViewportRuler', () => {
// successfully constrain its size. As such, skip assertions in environments where the
// window size has changed since the start of the test.
if (window.innerWidth > startingWindowWidth || window.innerHeight > startingWindowHeight) {
document.body.removeChild(veryLargeElement);
return;
}
@@ -78,6 +79,7 @@ describe('ViewportRuler', () => {
// successfully constrain its size. As such, skip assertions in environments where the
// window size has changed since the start of the test.
if (window.innerWidth > startingWindowWidth || window.innerHeight > startingWindowHeight) {
document.body.removeChild(veryLargeElement);
return;
}