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:
Tom 2020-09-02 12:11:23 -05:00 committed by GitHub
parent 9cd4b93601
commit e48664af2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
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.
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));
```