From 3a1ad5f59dd2faf0dde4e9c781600afa25745020 Mon Sep 17 00:00:00 2001 From: Anita Date: Thu, 18 Jun 2020 10:14:43 -0400 Subject: [PATCH] Fix issue with RangeBarChart test (#260) --- tests/jsdom/spec/RangeBarChart.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/jsdom/spec/RangeBarChart.spec.js b/tests/jsdom/spec/RangeBarChart.spec.js index a98abd61..d138a145 100644 --- a/tests/jsdom/spec/RangeBarChart.spec.js +++ b/tests/jsdom/spec/RangeBarChart.spec.js @@ -55,7 +55,7 @@ describe('RangeBarChart', () => { expect(bars.at(1).props().x).to.equal(50 - props.barThickness / 2); expect(bars.at(1).props().width).to.equal(props.barThickness); - expect(bars.at(1).props().y).to.equal(10); + expect(Math.round(bars.at(1).props().y)).to.equal(10); expect(bars.at(1).props().height).to.equal(30); });