-// Test the bar controller
-describe('Bar controller tests', function() {
+describe('Chart.controllers.bar', function() {
it('should be constructed', function() {
var chart = window.acquireChart({
type: 'bar',
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- id: 'firstXScaleID',
- display: false
+ id: 'firstXScaleID'
}],
yAxes: [{
- id: 'firstYScaleID',
- display: false
+ id: 'firstYScaleID'
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: true,
- display: false
+ stacked: true
}],
yAxes: [{
- stacked: true,
- display: false
+ stacked: true
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: false,
- display: false
+ stacked: false
}],
yAxes: [{
- stacked: false,
- display: false
+ stacked: false
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: true,
- display: false
+ stacked: true
}],
yAxes: [{
- stacked: true,
- display: false
+ stacked: true
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: false,
- display: false
+ stacked: false
}],
yAxes: [{
- stacked: false,
- display: false
+ stacked: false
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: true,
- display: false
+ stacked: true
}],
yAxes: [{
- stacked: true,
- display: false
+ stacked: true
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: false,
- display: false
+ stacked: false
}],
yAxes: [{
- stacked: false,
- display: false
+ stacked: false
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: true,
- display: false
+ stacked: true
}],
yAxes: [{
- stacked: true,
- display: false
+ stacked: true
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: false,
- display: false
+ stacked: false
}],
yAxes: [{
- stacked: false,
- display: false
+ stacked: false
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: true,
- display: false
+ stacked: true
}],
yAxes: [{
- stacked: true,
- display: false
+ stacked: true
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: false,
- display: false
+ stacked: false
}],
yAxes: [{
- stacked: false,
- display: false
+ stacked: false
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: true,
- display: false
+ stacked: true
}],
yAxes: [{
- stacked: true,
- display: false
+ stacked: true
}]
}
}
labels: []
},
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- stacked: false,
- display: false
+ stacked: false
}],
yAxes: [{
- stacked: false,
- display: false
+ stacked: false
}]
}
}
}],
yAxes: [{
type: 'linear',
- stacked: true,
- display: false
+ display: false,
+ stacked: true
}]
}
}
}],
yAxes: [{
type: 'linear',
- stacked: true,
display: false,
+ stacked: true,
ticks: {
min: 50,
max: 100
scales: {
xAxes: [{
type: 'category',
- stacked: true,
- display: false
+ display: false,
+ stacked: true
}],
yAxes: [{
type: 'linear',
}],
yAxes: [{
type: 'linear',
- stacked: true,
- display: false
+ display: false,
+ stacked: true
}]
}
}
}],
yAxes: [{
type: 'linear',
- stacked: true,
- display: false
+ display: false,
+ stacked: true
}]
}
}
display: false
}],
yAxes: [{
- stacked: true,
+ type: 'linear',
display: false,
- type: 'linear'
+ stacked: true,
}]
}
}
display: false
}],
yAxes: [{
- stacked: true,
+ type: 'linear',
display: false,
- type: 'linear'
+ stacked: true
}]
}
}
scales: {
xAxes: [{
type: 'category',
- stacked: true,
display: false,
+ stacked: true,
barPercentage: 1,
}],
yAxes: [{
type: 'logarithmic',
- stacked: true,
- display: false
+ display: false,
+ stacked: true
}]
}
}
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
- legend: false,
- title: false,
elements: {
rectangle: {
backgroundColor: 'rgb(255, 0, 0)',
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
- legend: false,
- title: false,
elements: {
rectangle: {
backgroundColor: 'rgb(255, 0, 0)',
type: 'bar',
data: this.data,
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- display: false,
ticks: {
min: 'March',
max: 'May',
type: 'bar',
data: this.data,
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- display: false,
ticks: {
min: 'March',
max: 'May',
}
}],
yAxes: [{
- display: false,
stacked: true
}]
}
type: 'horizontalBar',
data: this.data,
options: {
- legend: false,
- title: false,
scales: {
yAxes: [{
ticks: {
type: 'horizontalBar',
data: this.data,
options: {
- legend: false,
- title: false,
scales: {
xAxes: [{
- display: false,
stacked: true
}],
yAxes: [{
- display: false,
ticks: {
min: 'March',
max: 'May',
xAxes: [{
id: 'x',
type: 'category',
- display: false,
barThickness: barThickness
}],
yAxes: [{
type: 'linear',
- display: false
}]
}
}
xAxes: [{
id: 'x',
type: 'time',
- display: false,
time: {
unit: 'year',
parser: 'YYYY'
distribution: distribution
}],
yAxes: [{
- type: 'linear',
- display: false
+ type: 'linear'
}]
}
}
-// Test the bubble controller
-describe('Bubble controller tests', function() {
+describe('Chart.controllers.bubble', function() {
it('should be constructed', function() {
var chart = window.acquireChart({
type: 'bubble',
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
+ legend: false,
+ title: false,
scales: {
xAxes: [{
- type: 'category'
+ type: 'category',
+ display: false
}],
yAxes: [{
- type: 'linear'
+ type: 'linear',
+ display: false
}]
}
}
var meta = chart.getDatasetMeta(0);
[
- {r: 5, x: 28, y: 32},
- {r: 1, x: 183, y: 484},
- {r: 2, x: 338, y: 461},
- {r: 1, x: 492, y: 32}
+ {r: 5, x: 0, y: 0},
+ {r: 1, x: 171, y: 512},
+ {r: 2, x: 341, y: 486},
+ {r: 1, x: 512, y: 0}
].forEach(function(expected, i) {
expect(meta.data[i]._model.radius).toBe(expected.r);
expect(meta.data[i]._model.x).toBeCloseToPixel(expected.x);
-// Test the bar controller
-describe('Doughnut controller tests', function() {
+describe('Chart.controllers.doughnut', function() {
it('should be constructed', function() {
var chart = window.acquireChart({
type: 'doughnut',
labels: ['label0', 'label1', 'label2', 'label3']
},
options: {
+ legend: false,
+ title: false,
animation: {
animateRotate: true,
animateScale: false
{c: 0}
].forEach(function(expected, i) {
expect(meta.data[i]._model.x).toBeCloseToPixel(256);
- expect(meta.data[i]._model.y).toBeCloseToPixel(272);
- expect(meta.data[i]._model.outerRadius).toBeCloseToPixel(239);
- expect(meta.data[i]._model.innerRadius).toBeCloseToPixel(179);
+ expect(meta.data[i]._model.y).toBeCloseToPixel(256);
+ expect(meta.data[i]._model.outerRadius).toBeCloseToPixel(254);
+ expect(meta.data[i]._model.innerRadius).toBeCloseToPixel(190);
expect(meta.data[i]._model.circumference).toBeCloseTo(expected.c, 8);
expect(meta.data[i]._model).toEqual(jasmine.objectContaining({
startAngle: Math.PI * -0.5,
{c: 2.4434609527, s: 2.2689280275, e: 4.7123889803}
].forEach(function(expected, i) {
expect(meta.data[i]._model.x).toBeCloseToPixel(256);
- expect(meta.data[i]._model.y).toBeCloseToPixel(272);
- expect(meta.data[i]._model.outerRadius).toBeCloseToPixel(239);
- expect(meta.data[i]._model.innerRadius).toBeCloseToPixel(179);
+ expect(meta.data[i]._model.y).toBeCloseToPixel(256);
+ expect(meta.data[i]._model.outerRadius).toBeCloseToPixel(254);
+ expect(meta.data[i]._model.innerRadius).toBeCloseToPixel(190);
expect(meta.data[i]._model.circumference).toBeCloseTo(expected.c, 8);
expect(meta.data[i]._model.startAngle).toBeCloseTo(expected.s, 8);
expect(meta.data[i]._model.endAngle).toBeCloseTo(expected.e, 8);
labels: ['label0', 'label1']
},
options: {
+ legend: false,
+ title: false,
cutoutPercentage: 50,
rotation: Math.PI,
circumference: Math.PI * 0.5,
{c: Math.PI / 8, s: Math.PI, e: Math.PI + Math.PI / 8},
{c: 3 * Math.PI / 8, s: Math.PI + Math.PI / 8, e: Math.PI + Math.PI / 2}
].forEach(function(expected, i) {
- expect(meta.data[i]._model.x).toBeCloseToPixel(495);
- expect(meta.data[i]._model.y).toBeCloseToPixel(511);
- expect(meta.data[i]._model.outerRadius).toBeCloseToPixel(478);
- expect(meta.data[i]._model.innerRadius).toBeCloseToPixel(359);
+ expect(meta.data[i]._model.x).toBeCloseToPixel(510);
+ expect(meta.data[i]._model.y).toBeCloseToPixel(510);
+ expect(meta.data[i]._model.outerRadius).toBeCloseToPixel(509);
+ expect(meta.data[i]._model.innerRadius).toBeCloseToPixel(381);
expect(meta.data[i]._model.circumference).toBeCloseTo(expected.c, 8);
expect(meta.data[i]._model.startAngle).toBeCloseTo(expected.s, 8);
expect(meta.data[i]._model.endAngle).toBeCloseTo(expected.e, 8);
-// Test the line controller
-describe('Line controller tests', function() {
+describe('Chart.controllers.line', function() {
it('should be constructed', function() {
var chart = window.acquireChart({
type: 'line',
},
options: {
showLines: true,
+ legend: false,
+ title: false,
elements: {
point: {
backgroundColor: 'red',
},
scales: {
xAxes: [{
- id: 'firstXScaleID'
+ id: 'firstXScaleID',
+ display: false
}],
yAxes: [{
- id: 'firstYScaleID'
+ id: 'firstYScaleID',
+ display: false
}]
}
},
[
- {x: 33, y: 484},
- {x: 186, y: 32}
+ {x: 0, y: 512},
+ {x: 171, y: 0}
].forEach(function(expected, i) {
expect(meta.data[i]._datasetIndex).toBe(0);
expect(meta.data[i]._index).toBe(i);
}]
},
options: {
+ legend: false,
+ title: false,
hover: {
mode: 'single'
},
scales: {
+ xAxes: [{
+ display: false,
+ }],
yAxes: [{
+ display: false,
ticks: {
beginAtZero: true
}
var meta = chart.getDatasetMeta(0);
// 1 point
var point = meta.data[0];
- expect(point._model.x).toBeCloseToPixel(27);
+ expect(point._model.x).toBeCloseToPixel(0);
// 2 points
chart.data.labels = ['One', 'Two'];
var points = meta.data;
- expect(points[0]._model.x).toBeCloseToPixel(27);
- expect(points[1]._model.x).toBeCloseToPixel(498);
+ expect(points[0]._model.x).toBeCloseToPixel(0);
+ expect(points[1]._model.x).toBeCloseToPixel(512);
// 3 points
chart.data.labels = ['One', 'Two', 'Three'];
points = meta.data;
- expect(points[0]._model.x).toBeCloseToPixel(27);
- expect(points[1]._model.x).toBeCloseToPixel(260);
- expect(points[2]._model.x).toBeCloseToPixel(493);
+ expect(points[0]._model.x).toBeCloseToPixel(0);
+ expect(points[1]._model.x).toBeCloseToPixel(256);
+ expect(points[2]._model.x).toBeCloseToPixel(512);
// 4 points
chart.data.labels = ['One', 'Two', 'Three', 'Four'];
points = meta.data;
- expect(points[0]._model.x).toBeCloseToPixel(27);
- expect(points[1]._model.x).toBeCloseToPixel(184);
+ expect(points[0]._model.x).toBeCloseToPixel(0);
+ expect(points[1]._model.x).toBeCloseToPixel(171);
expect(points[2]._model.x).toBeCloseToPixel(340);
- expect(points[3]._model.x).toBeCloseToPixel(497);
+ expect(points[3]._model.x).toBeCloseToPixel(512);
});
it('should update elements when the y scale is stacked', function() {
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
+ legend: false,
+ title: false,
scales: {
+ xAxes: [{
+ display: false,
+ }],
yAxes: [{
+ display: false,
stacked: true
}]
}
var meta0 = chart.getDatasetMeta(0);
[
- {x: 28, y: 161},
- {x: 183, y: 419},
- {x: 338, y: 161},
- {x: 492, y: 419}
+ {x: 0, y: 146},
+ {x: 171, y: 439},
+ {x: 341, y: 146},
+ {x: 512, y: 439}
].forEach(function(values, i) {
expect(meta0.data[i]._model.x).toBeCloseToPixel(values.x);
expect(meta0.data[i]._model.y).toBeCloseToPixel(values.y);
var meta1 = chart.getDatasetMeta(1);
[
- {x: 28, y: 32},
- {x: 183, y: 97},
- {x: 338, y: 161},
- {x: 492, y: 471}
+ {x: 0, y: 0},
+ {x: 171, y: 73},
+ {x: 341, y: 146},
+ {x: 512, y: 497}
].forEach(function(values, i) {
expect(meta1.data[i]._model.x).toBeCloseToPixel(values.x);
expect(meta1.data[i]._model.y).toBeCloseToPixel(values.y);
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
+ legend: false,
+ title: false,
scales: {
+ xAxes: [{
+ display: false,
+ }],
yAxes: [{
+ display: false,
stacked: true
}, {
+ id: 'secondAxis',
type: 'linear',
- id: 'secondAxis'
+ display: false
}]
}
}
var meta0 = chart.getDatasetMeta(0);
[
- {x: 56, y: 161},
- {x: 202, y: 419},
- {x: 347, y: 161},
- {x: 492, y: 419}
+ {x: 0, y: 146},
+ {x: 171, y: 439},
+ {x: 341, y: 146},
+ {x: 512, y: 439}
].forEach(function(values, i) {
expect(meta0.data[i]._model.x).toBeCloseToPixel(values.x);
expect(meta0.data[i]._model.y).toBeCloseToPixel(values.y);
var meta1 = chart.getDatasetMeta(1);
[
- {x: 56, y: 32},
- {x: 202, y: 97},
- {x: 347, y: 161},
- {x: 492, y: 471}
+ {x: 0, y: 0},
+ {x: 171, y: 73},
+ {x: 341, y: 146},
+ {x: 512, y: 497}
].forEach(function(values, i) {
expect(meta1.data[i]._model.x).toBeCloseToPixel(values.x);
expect(meta1.data[i]._model.y).toBeCloseToPixel(values.y);
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
+ legend: false,
+ title: false,
scales: {
+ xAxes: [{
+ display: false,
+ }],
yAxes: [{
+ display: false,
stacked: true
}]
}
var meta0 = chart.getDatasetMeta(0);
[
- {x: 28, y: 161},
- {x: 183, y: 419},
- {x: 338, y: 161},
- {x: 492, y: 419}
+ {x: 0, y: 146},
+ {x: 171, y: 439},
+ {x: 341, y: 146},
+ {x: 512, y: 439}
].forEach(function(values, i) {
expect(meta0.data[i]._model.x).toBeCloseToPixel(values.x);
expect(meta0.data[i]._model.y).toBeCloseToPixel(values.y);
var meta1 = chart.getDatasetMeta(1);
[
- {x: 28, y: 32},
- {x: 183, y: 97},
- {x: 338, y: 161},
- {x: 492, y: 471}
+ {x: 0, y: 0},
+ {x: 171, y: 73},
+ {x: 341, y: 146},
+ {x: 512, y: 497}
].forEach(function(values, i) {
expect(meta1.data[i]._model.x).toBeCloseToPixel(values.x);
expect(meta1.data[i]._model.y).toBeCloseToPixel(values.y);
labels: ['label1', 'label2', 'label3', 'label4']
},
options: {
+ legend: false,
+ title: false,
scales: {
+ xAxes: [{
+ display: false,
+ }],
yAxes: [{
+ display: false,
stacked: true
}]
}
var meta0 = chart.getDatasetMeta(0);
[
- {x: 28, y: 161},
- {x: 183, y: 419},
- {x: 338, y: 161},
- {x: 492, y: 419}
+ {x: 0, y: 146},
+ {x: 171, y: 439},
+ {x: 341, y: 146},
+ {x: 512, y: 439}
].forEach(function(values, i) {
expect(meta0.data[i]._model.x).toBeCloseToPixel(values.x);
expect(meta0.data[i]._model.y).toBeCloseToPixel(values.y);
var meta1 = chart.getDatasetMeta(1);
[
- {x: 28, y: 32},
- {x: 183, y: 97},
- {x: 338, y: 161},
- {x: 492, y: 471}
+ {x: 0, y: 0},
+ {x: 171, y: 73},
+ {x: 341, y: 146},
+ {x: 512, y: 497}
].forEach(function(values, i) {
expect(meta1.data[i]._model.x).toBeCloseToPixel(values.x);
expect(meta1.data[i]._model.y).toBeCloseToPixel(values.y);
-// Test the polar area controller
-describe('Polar area controller tests', function() {
+describe('Chart.controllers.polarArea', function() {
it('should be constructed', function() {
var chart = window.acquireChart({
type: 'polarArea',
},
options: {
showLines: true,
+ legend: false,
+ title: false,
elements: {
arc: {
backgroundColor: 'rgb(255, 0, 0)',
expect(meta.data.length).toBe(4);
[
- {o: 168, s: -0.5 * Math.PI, e: 0},
- {o: 228, s: 0, e: 0.5 * Math.PI},
- {o: 48, s: 0.5 * Math.PI, e: Math.PI},
+ {o: 179, s: -0.5 * Math.PI, e: 0},
+ {o: 243, s: 0, e: 0.5 * Math.PI},
+ {o: 51, s: 0.5 * Math.PI, e: Math.PI},
{o: 0, s: Math.PI, e: 1.5 * Math.PI}
].forEach(function(expected, i) {
expect(meta.data[i]._model.x).toBeCloseToPixel(256);
- expect(meta.data[i]._model.y).toBeCloseToPixel(272);
+ expect(meta.data[i]._model.y).toBeCloseToPixel(256);
expect(meta.data[i]._model.innerRadius).toBeCloseToPixel(0);
expect(meta.data[i]._model.outerRadius).toBeCloseToPixel(expected.o);
expect(meta.data[i]._model.startAngle).toBe(expected.s);
chart.update();
expect(meta.data[0]._model.x).toBeCloseToPixel(256);
- expect(meta.data[0]._model.y).toBeCloseToPixel(272);
+ expect(meta.data[0]._model.y).toBeCloseToPixel(256);
expect(meta.data[0]._model.innerRadius).toBeCloseToPixel(0);
- expect(meta.data[0]._model.outerRadius).toBeCloseToPixel(168);
+ expect(meta.data[0]._model.outerRadius).toBeCloseToPixel(179);
expect(meta.data[0]._model).toEqual(jasmine.objectContaining({
startAngle: -0.5 * Math.PI,
endAngle: 0,
},
options: {
showLines: true,
+ legend: false,
+ title: false,
startAngle: 0, // default is -0.5 * Math.PI
elements: {
arc: {
expect(meta.data.length).toBe(4);
[
- {o: 168, s: 0, e: 0.5 * Math.PI},
- {o: 228, s: 0.5 * Math.PI, e: Math.PI},
- {o: 48, s: Math.PI, e: 1.5 * Math.PI},
+ {o: 179, s: 0, e: 0.5 * Math.PI},
+ {o: 243, s: 0.5 * Math.PI, e: Math.PI},
+ {o: 51, s: Math.PI, e: 1.5 * Math.PI},
{o: 0, s: 1.5 * Math.PI, e: 2.0 * Math.PI}
].forEach(function(expected, i) {
expect(meta.data[i]._model.x).toBeCloseToPixel(256);
- expect(meta.data[i]._model.y).toBeCloseToPixel(272);
+ expect(meta.data[i]._model.y).toBeCloseToPixel(256);
expect(meta.data[i]._model.innerRadius).toBeCloseToPixel(0);
expect(meta.data[i]._model.outerRadius).toBeCloseToPixel(expected.o);
expect(meta.data[i]._model.startAngle).toBe(expected.s);
-// Test the polar area controller
-describe('Radar controller tests', function() {
+describe('Chart.controllers.radar', function() {
it('Should be constructed', function() {
var chart = window.acquireChart({
type: 'radar',
},
options: {
showLines: true,
+ legend: false,
+ title: false,
elements: {
line: {
backgroundColor: 'rgb(255, 0, 0)',
}));
[
- {x: 256, y: 272, cppx: 256, cppy: 272, cpnx: 256, cpny: 272},
- {x: 256, y: 272, cppx: 256, cppy: 272, cpnx: 256, cpny: 272},
- {x: 256, y: 272, cppx: 256, cppy: 272, cpnx: 256, cpny: 272},
- {x: 256, y: 272, cppx: 256, cppy: 272, cpnx: 256, cpny: 272},
+ {x: 256, y: 256, cppx: 256, cppy: 256, cpnx: 256, cpny: 256},
+ {x: 256, y: 256, cppx: 256, cppy: 256, cpnx: 256, cpny: 256},
+ {x: 256, y: 256, cppx: 256, cppy: 256, cpnx: 256, cpny: 256},
+ {x: 256, y: 256, cppx: 256, cppy: 256, cpnx: 256, cpny: 256},
].forEach(function(expected, i) {
expect(meta.data[i]._model.x).toBeCloseToPixel(expected.x);
expect(meta.data[i]._model.y).toBeCloseToPixel(expected.y);
meta.controller.update();
[
- {x: 256, y: 133, cppx: 246, cppy: 133, cpnx: 272, cpny: 133},
- {x: 464, y: 272, cppx: 464, cppy: 264, cpnx: 464, cpny: 278},
- {x: 256, y: 272, cppx: 276.9, cppy: 272, cpnx: 250.4, cpny: 272},
- {x: 200, y: 272, cppx: 200, cppy: 275, cpnx: 200, cpny: 261},
+ {x: 256, y: 117, cppx: 246, cppy: 117, cpnx: 272, cpny: 117},
+ {x: 464, y: 256, cppx: 464, cppy: 248, cpnx: 464, cpny: 262},
+ {x: 256, y: 256, cppx: 276.9, cppy: 256, cpnx: 250.4, cpny: 256},
+ {x: 200, y: 256, cppx: 200, cppy: 259, cpnx: 200, cpny: 245},
].forEach(function(expected, i) {
expect(meta.data[i]._model.x).toBeCloseToPixel(expected.x);
expect(meta.data[i]._model.y).toBeCloseToPixel(expected.y);
// Since tension is now 0, we don't care about the control points
[
- {x: 256, y: 133},
- {x: 464, y: 272},
- {x: 256, y: 272},
- {x: 200, y: 272},
+ {x: 256, y: 117},
+ {x: 464, y: 256},
+ {x: 256, y: 256},
+ {x: 200, y: 256},
].forEach(function(expected, i) {
expect(meta.data[i]._model.x).toBeCloseToPixel(expected.x);
expect(meta.data[i]._model.y).toBeCloseToPixel(expected.y);
}));
expect(meta.data[0]._model.x).toBeCloseToPixel(256);
- expect(meta.data[0]._model.y).toBeCloseToPixel(133);
+ expect(meta.data[0]._model.y).toBeCloseToPixel(117);
expect(meta.data[0]._model.controlPointPreviousX).toBeCloseToPixel(241);
- expect(meta.data[0]._model.controlPointPreviousY).toBeCloseToPixel(133);
+ expect(meta.data[0]._model.controlPointPreviousY).toBeCloseToPixel(117);
expect(meta.data[0]._model.controlPointNextX).toBeCloseToPixel(281);
- expect(meta.data[0]._model.controlPointNextY).toBeCloseToPixel(133);
+ expect(meta.data[0]._model.controlPointNextY).toBeCloseToPixel(117);
expect(meta.data[0]._model).toEqual(jasmine.objectContaining({
radius: 2.2,
backgroundColor: 'rgb(0, 1, 3)',