Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe12729

Browse files
committed
one more Lib->Drawing
1 parent 66baf51 commit fe12729

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/jasmine/tests/cartesian_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var d3 = require('d3');
22

33
var Plotly = require('@lib/index');
44
var Lib = require('@src/lib');
5+
var Drawing = require('@src/components/drawing');
56

67
var createGraphDiv = require('../assets/create_graph_div');
78
var destroyGraphDiv = require('../assets/destroy_graph_div');
@@ -283,7 +284,7 @@ describe('relayout', function() {
283284
expect(points.attr('y')).toBe(null);
284285
expect(texts.attr('transform')).toBe(null);
285286

286-
var translate = Lib.getTranslate(points);
287+
var translate = Drawing.getTranslate(points);
287288
expect(Math.abs(translate.x - pointT[0])).toBeLessThan(TOLERANCE);
288289
expect(Math.abs(translate.y - pointT[1])).toBeLessThan(TOLERANCE);
289290

0 commit comments

Comments
 (0)