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
.');