[Fix] allow line breaks between method calls for several Data Visualization challenges (#35093)

* fix: allow spaces between lines breaks a function arguments

* fix: allow line breaks between method calls
This commit is contained in:
Randell Dawson
2019-02-22 11:18:10 -08:00
committed by Christopher McCormack
parent 603585e39e
commit bc99876f9e
4 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ tests:
- text: The y-axis <code>g</code> element should have a <code>transform</code> 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 <code>g</code> element should have a <code>transform</code> attribute to translate the axis by (60, 0).');
- text: Your code should call the <code>yAxis</code>.
testString: assert(code.match(/\.call\(yAxis\)/g), 'Your code should call the <code>yAxis</code>.');
testString: assert(code.match(/\.call\(\s*yAxis\s*\)/g), 'Your code should call the <code>yAxis</code>.');
```