From 82add26091fdac77d3668e293840c50193573e48 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 30 Mar 2021 08:13:17 +0200 Subject: [PATCH] Fix incorrect zoom test exposed by d3-transition fix The original test was incorrect since it tried to reuse a transition that had expired. This went unnoticed until https://github.com/d3/d3-transition/issues/59 was fixed. --- test/zoom-test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/zoom-test.js b/test/zoom-test.js index 849d1b0c..99a2b9fe 100644 --- a/test/zoom-test.js +++ b/test/zoom-test.js @@ -281,6 +281,7 @@ tape("zooming rescales transforms during transitions.", function(test) { ); graphviz + .transition(d3_transition.transition().duration(100)) .renderDot('digraph {a -> b; b -> c}') .on('transitionStart', function() { test.ok(graphviz._zoomBehavior, 'The zoom behavior is attached when transition starts');