fix(challenge): decrease opacity testString (#34711)

This commit is contained in:
nik
2019-03-05 17:11:27 +00:00
committed by Paul Gamble
parent f5c5bc8028
commit 304d36ab47

View File

@ -23,7 +23,7 @@ Set the <code>opacity</code> of the anchor tags to 0.7 using <code>links</code>
```yml
tests:
- text: Your code should set the <code>opacity</code> property to 0.7 on the anchor tags by selecting the class of <code>links</code>.
testString: assert.approximately(parseFloat($('.links').css('opacity')), 0.7, 0.1, 'Your code should set the <code>opacity</code> property to 0.7 on the anchor tags by selecting the class of <code>links</code>.');
testString: assert(/\.links\s*\{[^}]+opacity\s*:\s*0.7;/.test(code), 'Your code should set the <code>opacity</code> property to 0.7 on the anchor tags by selecting the class of <code>links</code>.');
```