fix(challenge): decrease opacity testString (#34711)
This commit is contained in:
@ -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>.');
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user