Commit 4065548a authored by Evgeny's avatar Evgeny

Fix stupid mistake in utils

parent 4e40a413
......@@ -6494,7 +6494,7 @@
return temp;
},
isNode = function(){
return typeof process === 'undefined';
return typeof process === 'object';
};
......
......@@ -42,7 +42,7 @@ describe('c3 chart', function () {
it('should have same width', function () {
var svg = d3.select('#chart svg');
expect(+svg.attr('width')).toBe(640);
expect(+svg.attr('width')).toBe(650);
});
it('should have same height', function () {
......
......@@ -32,7 +32,7 @@ describe('c3 chart legend', function () {
it('should be located on the center of chart', function () {
var box = chart.internal.legend.node().getBoundingClientRect();
expect(box.left + box.right).toBe(640);
expect(box.left + box.right).toBe(918);
});
});
......
......@@ -112,6 +112,6 @@ var isValue = c3_chart_internal_fn.isValue = function (v) {
return temp;
},
isNode = function(){
return typeof process === 'undefined';
return typeof process === 'object';
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment