diff --git a/test/center-test.js b/test/center-test.js index ef0c14a..6b468c8 100644 --- a/test/center-test.js +++ b/test/center-test.js @@ -8,7 +8,7 @@ tape("forceCenter repositions nodes", function(test) { const f = force.forceSimulation().force("center", center).stop(); const a = { x: 100, y: 0 }, b = { x: 200, y: 0 }, c = { x: 300, y: 0 }; f.nodes([a, b, c]); - f.tick(); + f.alphaDecay(0).tick(250); test.nodeEqual(a, { index: 0, x: -100, y: 0, vy: 0, vx: 0 }); test.nodeEqual(b, { index: 1, x: 0, y: 0, vy: 0, vx: 0 }); test.nodeEqual(c, { index: 2, x: 100, y: 0, vy: 0, vx: 0 });