Skip to content

Commit

Permalink
Fix incorrect zoom test exposed by d3-transition fix
Browse files Browse the repository at this point in the history
The original test was incorrect since it tried to reuse a transition
that had expired. This went unnoticed until
d3/d3-transition#59 was fixed.
  • Loading branch information
magjac committed Apr 2, 2021
1 parent 7da4429 commit 82add26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/zoom-test.js
Expand Up @@ -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');
Expand Down

0 comments on commit 82add26

Please sign in to comment.