fix(learn): font size multiple headings exercise (#39511)
* fix: use regex to capture font-size of h6 element, as minimum font-size of browsers may influence outcome * fix: add suggested changes Co-authored-by: Ashraf Nazar <ashraf.caspian@gmail.com>
This commit is contained in:
@ -33,7 +33,7 @@ tests:
|
|||||||
- text: Your code should set the <code>font-size</code> property for the <code>h5</code> tag to 21 pixels.
|
- text: Your code should set the <code>font-size</code> property for the <code>h5</code> tag to 21 pixels.
|
||||||
testString: assert($('h5').css('font-size') == '21px');
|
testString: assert($('h5').css('font-size') == '21px');
|
||||||
- text: Your code should set the <code>font-size</code> property for the <code>h6</code> tag to 14 pixels.
|
- text: Your code should set the <code>font-size</code> property for the <code>h6</code> tag to 14 pixels.
|
||||||
testString: assert($('h6').css('font-size') == '14px');
|
testString: const regex = /h6\s*\{\s*font-size\s*:\s*14px\s*(;\s*\}|\})/i; assert.strictEqual(true, regex.test(code));
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user