fix: fix slope line #481
Annotations
4 errors
packages/picasso.js/src/core/chart-components/ref-line/__tests__/refline.spec.js#L557
assert.deepStrictEqual(received, expected)
Expected value to deeply and strictly equal to:
[{"flipXY": false, "stroke": "green", "strokeDasharray": undefined, "strokeWidth": 2, "type": "line", "value": 0.5, "x1": 0, "x2": 870, "y1": 406.5, "y2": 0}, {"anchor": "start", "fill": "green", "fontFamily": "Arial", "fontSize": "12px", "maxWidth": 120, "opacity": 1, "text": "Threshold value (-0.5x + 0.5)", "title": "Threshold value (-0.5x + 0.5)", "type": "text", "width": 120, "x": 7, "y": 404}]
Received:
[{"flipXY": false, "stroke": "green", "strokeDasharray": undefined, "strokeWidth": 2, "type": "line", "value": 0.5, "x1": 0, "x2": 870, "y1": 406.5, "y2": 813}, {"anchor": "start", "fill": "green", "fontFamily": "Arial", "fontSize": "12px", "maxWidth": 120, "opacity": 1, "text": "Threshold value (-0.5x + 0.5)", "title": "Threshold value (-0.5x + 0.5)", "type": "text", "width": 120, "x": 7, "y": 404}]
Message:
expected [ Array(2) ] to deeply equal [ { flipXY: false, …(9) }, …(1) ]
Difference:
- Expected
+ Received
@@ -7,11 +7,11 @@
"type": "line",
"value": 0.5,
"x1": 0,
"x2": 870,
"y1": 406.5,
- "y2": 0,
+ "y2": 813,
},
Object {
"anchor": "start",
"fill": "green",
"fontFamily": "Arial",
at Object.equal (packages/picasso.js/src/core/chart-components/ref-line/__tests__/refline.spec.js:557:36)
|
packages/picasso.js/src/core/chart-components/ref-line/__tests__/refline.spec.js#L721
assert.deepStrictEqual(received, expected)
Expected value to deeply and strictly equal to:
[{"cx": 15, "cy": 775, "data": [{"value": 3}], "fill": "#1A1A1A", "opacity": 1, "r": 10, "stroke": "transparent", "strokeWidth": 0, "type": "circle"}, {"fill": "#fff", "fontFamily": "Arial", "fontSize": "13px", "opacity": 1, "stroke": "transparent", "strokeWidth": 0, "text": 1, "type": "text", "x": 11, "y": 779}, {"d": "
M 7.5 786.25
L 22.5 786.25
L 15 793.75 Z
", "fill": "#4D4D4D", "opacity": 1, "stroke": "transparent", "strokeWidth": 0, "type": "path", "x": 15, "y": 775}]
Received:
[{"cx": 15, "cy": 38, "data": [{"value": 3}], "fill": "#1A1A1A", "opacity": 1, "r": 10, "stroke": "transparent", "strokeWidth": 0, "type": "circle"}, {"fill": "#fff", "fontFamily": "Arial", "fontSize": "13px", "opacity": 1, "stroke": "transparent", "strokeWidth": 0, "text": 1, "type": "text", "x": 11, "y": 42}, {"d": "
M 7.5 26.75
L 22.5 26.75
L 15 19.25 Z
", "fill": "#4D4D4D", "opacity": 1, "stroke": "transparent", "strokeWidth": 0, "type": "path", "x": 15, "y": 38}]
Message:
expected [ …(3) ] to deeply equal [ …(3) ]
Difference:
- Expected
+ Received
@@ -1,9 +1,9 @@
Array [
Object {
"cx": 15,
- "cy": 775,
+ "cy": 38,
"data": Array [
Object {
"value": 3,
},
],
@@ -22,22 +22,22 @@
"stroke": "transparent",
"strokeWidth": 0,
"text": 1,
"type": "text",
"x": 11,
- "y": 779,
+ "y": 42,
},
Object {
"d": "
- M 7.5 786.25
- L 22.5 786.25
- L 15 793.75 Z
+ M 7.5 26.75
+ L 22.5 26.75
+ L 15 19.25 Z
",
"fill": "#4D4D4D",
"opacity": 1,
"stroke": "transparent",
"strokeWidth": 0,
"type": "path",
"x": 15,
- "y": 775,
+ "y": 38,
},
]
at Object.equal (packages/picasso.js/src/core/chart-components/ref-line/__tests__/refline.spec.js:721:36)
|
|
|
The logs for this run have expired and are no longer available.
Loading