setTimeout(function () { var p = getPolygonPoints(); expect(p.length).to.equal(6); expect(p[2].x - p[1].x).to.be.above(0); expect(p[2].x - p[1].x).to.be.closeTo(p[1].x - p[0].x, 3); expect(p[2].y - p[1].y).to.be.above(0); expect(p[2].y - p[1].y).to.be.closeTo(p[1].y - p[0].y, 3); testUtils.destroyCharts(); document.body.removeChild(testDiv); done(); }, 750);
afterEach(function () { target.parentNode.removeChild(target); testUtils.destroyCharts(); });
afterEach(function () { element.parentNode.removeChild(element); testUtils.destroyCharts(); });