From b52f4f9effe54175a83281fc0cf6e2688efce9ac Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Mon, 18 Mar 2019 16:05:17 +0200 Subject: [PATCH] Fix fixture tests with high pixel ratio (#123) --- test/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/index.js b/test/index.js index 13bfc9c..709758a 100644 --- a/test/index.js +++ b/test/index.js @@ -7,6 +7,9 @@ import utils from './utils'; var charts = {}; +// force ratio=1 for tests on high-res/retina devices +window.devicePixelRatio = 1; + jasmine.chart = { acquire: function() { var chart = utils.acquireChart.apply(utils, arguments);