fix: removed assert msg argument (#36407)
This commit is contained in:
committed by
Oliver Eyton-Williams
parent
87615d2a7b
commit
8e6c26f271
@ -33,11 +33,11 @@ Add style rules for the <code>img</code> tag to make it responsive to the size o
|
||||
```yml
|
||||
tests:
|
||||
- text: Your <code>img</code> tag should have a <code>max-width</code> set to 100%.
|
||||
testString: assert(code.match(/max-width:\s*?100%;/g), 'Your <code>img</code> tag should have a <code>max-width</code> set to 100%.');
|
||||
testString: assert(code.match(/max-width:\s*?100%;/g));
|
||||
- text: Your <code>img</code> tag should have a <code>display</code> set to block.
|
||||
testString: assert($('img').css('display') == 'block', 'Your <code>img</code> tag should have a <code>display</code> set to block.');
|
||||
testString: assert($('img').css('display') == 'block');
|
||||
- text: Your <code>img</code> tag should have a <code>height</code> set to auto.
|
||||
testString: assert(code.match(/height:\s*?auto;/g), 'Your <code>img</code> tag should have a <code>height</code> set to auto.');
|
||||
testString: assert(code.match(/height:\s*?auto;/g));
|
||||
|
||||
```
|
||||
|
||||
|
@ -25,9 +25,9 @@ Set the <code>width</code> of the <code>h2</code> tag to 80% of the viewport's w
|
||||
```yml
|
||||
tests:
|
||||
- text: Your <code>h2</code> tag should have a <code>width</code> of 80vw.
|
||||
testString: assert(code.match(/h2\s*?{\s*?width:\s*?80vw;\s*?}/g), 'Your <code>h2</code> tag should have a <code>width</code> of 80vw.');
|
||||
testString: assert(code.match(/h2\s*?{\s*?width:\s*?80vw;\s*?}/g));
|
||||
- text: Your <code>p</code> tag should have a <code>width</code> of 75vmin.
|
||||
testString: assert(code.match(/p\s*?{\s*?width:\s*?75vmin;\s*?}/g), 'Your <code>p</code> tag should have a <code>width</code> of 75vmin.');
|
||||
testString: assert(code.match(/p\s*?{\s*?width:\s*?75vmin;\s*?}/g));
|
||||
|
||||
```
|
||||
|
||||
|
@ -32,9 +32,9 @@ Set the <code>width</code> and <code>height</code> of the <code>img</code> tag t
|
||||
```yml
|
||||
tests:
|
||||
- text: Your <code>img</code> tag should have a <code>width</code> of 100 pixels.
|
||||
testString: assert($('img').css('width') == '100px', 'Your <code>img</code> tag should have a <code>width</code> of 100 pixels.');
|
||||
testString: assert($('img').css('width') == '100px');
|
||||
- text: Your <code>img</code> tag should have a <code>height</code> of 100 pixels.
|
||||
testString: assert($('img').css('height') == '100px', 'Your <code>img</code> tag should have a <code>height</code> of 100 pixels.');
|
||||
testString: assert($('img').css('height') == '100px');
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user