From 4f22235cc6fef5bec154b6d1e3da913bb198dab2 Mon Sep 17 00:00:00 2001 From: Sumer Patel Date: Wed, 13 Mar 2019 13:53:02 +0530 Subject: [PATCH] fix: broken tests in add-axes-to-a-visualization-challenge-in-d3 (Issue: #35554) (#35577) --- .../add-axes-to-a-visualization.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/add-axes-to-a-visualization.english.md b/curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/add-axes-to-a-visualization.english.md index ed665660f7..ad3b89a3e9 100644 --- a/curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/add-axes-to-a-visualization.english.md +++ b/curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/add-axes-to-a-visualization.english.md @@ -31,7 +31,7 @@ tests: - text: Your code should use the axisLeft() method with yScale passed as the argument. testString: assert(code.match(/\.axisLeft\(yScale\)/g), 'Your code should use the axisLeft() method with yScale passed as the argument.'); - text: The y-axis g element should have a transform attribute to translate the axis by (60, 0). - testString: assert($('g').eq(1).attr('transform').match(/translate\(60\s*?,\s*?0\)/g), 'The y-axis g element should have a transform attribute to translate the axis by (60, 0).'); + testString: assert($('g').eq(10).attr('transform').match(/translate\(60\s*?,\s*?0\)/g), 'The y-axis g element should have a transform attribute to translate the axis by (60, 0).'); - text: Your code should call the yAxis. testString: assert(code.match(/\.call\(\s*yAxis\s*\)/g), 'Your code should call the yAxis.');