restore tests

This commit is contained in:
Anton Lavrenov 2023-04-05 20:56:46 -06:00
parent a82116d2ea
commit 47a3b5e33c

View File

@ -1168,7 +1168,7 @@ describe('Path', function () {
stage.add(layer);
});
it.only('get point at path - bezier', function () {
it('get point at path - bezier', function () {
var stage = addStage();
var layer = new Konva.Layer();
const data =
@ -1222,44 +1222,13 @@ describe('Path', function () {
assert.deepEqual(points, [
{ x: 100, y: 250 },
{ x: 183.49257326906178, y: 189.74412603457034 },
{ x: 281.0151908091271, y: 178.20647353642187 },
{ x: 366.7132913762265, y: 220.40664127957314 },
{ x: 105.49453421722073, y: 163.7109030937208 },
{ x: 88.80979830887104, y: 261.9310198815103 },
{ x: 80.0187270730884, y: 357.83046559509427 },
{ x: 117.93714733252399, y: 346.99459027920284 },
{ x: 166.1370633980933, y: 260.4358051093468 },
{ x: 227.98754443852883, y: 182.09507003542205 },
{ x: 296.17215373535686, y: 105.30891997028526 },
{ x: 305.3161348059441, y: 142.9460142538079 },
{ x: 267.2661704645427, y: 232.6860656778539 },
{ x: 227.16050436878314, y: 324.94655835229406 },
{ x: 185.65639171348846, y: 422.04089877316545 },
{ x: 207.5911710830848, y: 414.96086124898176 },
{ x: 264.3047848379108, y: 330.13969208207294 },
{ x: 321.18170383159446, y: 253.6870726749278 },
{ x: 390.329571545151, y: 177.42471959238998 },
{ x: 459.92552663143755, y: 114.44249046700436 },
{ x: 410.01622229664224, y: 202.72024124427364 },
{ x: 357.81453859627857, y: 288.9701212069797 },
{ x: 306.5051917255263, y: 373.1829146355453 },
{ x: 254.45611263495965, y: 461.05257532017424 },
{ x: 311.64470317120777, y: 393.1486428786611 },
{ x: 374.86125434742394, y: 318.78396882819396 },
{ x: 448.98895550268287, y: 245.379089552074 },
{ x: 509.82250467838867, y: 204.94802938217413 },
{ x: 470.0769294556105, y: 300.3644863201298 },
{ x: 427.5177926499756, y: 395.04577445277806 },
{ x: 392.21257855027216, y: 483.8201732191269 },
{ x: 457.15548210720317, y: 437.6905086420308 },
{ x: 523.8003177586382, y: 368.10021407147605 },
{ x: 593.340769055968, y: 295.0305015759889 },
{ x: 603.653217505318, y: 353.4806817624205 },
{ x: 572.3287288437606, y: 447.38305323763467 },
{ x: 602.8355141088527, y: 472.68660858157966 },
{ x: 682.2552228873318, y: 406.8842711481312 },
{ x: 754.9298687762096, y: 338.83102136000986 },
]);
}
stage.add(layer);