fix(curriculum): test typos (#39984)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							f6fcb26a9d
						
					
				
				
					commit
					35c4020f4d
				
			| @@ -20,9 +20,9 @@ tests: | |||||||
|     testString: assert( $('input').length ); |     testString: assert( $('input').length ); | ||||||
|   - text: Your `form` should only contain the `input` element. Remove any HTML additional elements or text within the `form` element. |   - text: Your `form` should only contain the `input` element. Remove any HTML additional elements or text within the `form` element. | ||||||
|     testString: assert( $('form')[0].children.length === 1 && $('form')[0].innerText.trim().length === 0 ); |     testString: assert( $('form')[0].children.length === 1 && $('form')[0].innerText.trim().length === 0 ); | ||||||
|   - text: Your `input` element should have a `required` attribute`. Remember, you just add the word `required` inside the `input` element's tag. |   - text: Your `input` element should have a `required` attribute. Remember, you just add the word `required` inside the `input` element's tag. | ||||||
|     testString: assert( $('input')[0].hasAttribute('required') ); |     testString: assert( $('input')[0].hasAttribute('required') ); | ||||||
|   - text: A value should not be given to the `required` attribute`. |   - text: A value should not be given to the `required` attribute. | ||||||
|     testString: assert( $('input')[0].getAttribute('required') === '' ); |     testString: assert( $('input')[0].getAttribute('required') === '' ); | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
|   | |||||||
| @@ -28,7 +28,7 @@ tests: | |||||||
|     testString: assert(result[0] == '<h1>'); |     testString: assert(result[0] == '<h1>'); | ||||||
|   - text: <code>myRegex</code> should use lazy matching |   - text: <code>myRegex</code> should use lazy matching | ||||||
|     testString: assert(/\?/g.test(myRegex)); |     testString: assert(/\?/g.test(myRegex)); | ||||||
|   - text: <code>myRegex</code></code> should not include the string 'h1' |   - text: <code>myRegex</code> should not include the string 'h1' | ||||||
|     testString: assert(!myRegex.source.match('h1')); |     testString: assert(!myRegex.source.match('h1')); | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
|   | |||||||
| @@ -39,9 +39,9 @@ tests: | |||||||
|     testString: assert(code.match(/\$text-color:\s*?red;/g)); |     testString: assert(code.match(/\$text-color:\s*?red;/g)); | ||||||
|   - text: Your code should use the <code>$text-color</code> variable to change the <code>color</code> for the <code>.blog-post</code> and <code>h2</code> items. |   - text: Your code should use the <code>$text-color</code> variable to change the <code>color</code> for the <code>.blog-post</code> and <code>h2</code> items. | ||||||
|     testString: assert(code.match(/color:\s*?\$text-color;/g)); |     testString: assert(code.match(/color:\s*?\$text-color;/g)); | ||||||
|   - text: Your <code>.blog-post</code> element should have a </code>color</code> of red. |   - text: Your <code>.blog-post</code> element should have a <code>color</code> of red. | ||||||
|     testString: assert($('.blog-post').css('color') == 'rgb(255, 0, 0)'); |     testString: assert($('.blog-post').css('color') == 'rgb(255, 0, 0)'); | ||||||
|   - text: Your <code>h2</code> elements should have a </code>color</code> of red. |   - text: Your <code>h2</code> elements should have a <code>color</code> of red. | ||||||
|     testString: assert($('h2').css('color') == 'rgb(255, 0, 0)'); |     testString: assert($('h2').css('color') == 'rgb(255, 0, 0)'); | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
|   | |||||||
| @@ -37,7 +37,7 @@ Any cell size is allowed, EOF (<u>E</u>nd-<u>O</u>-<u>F</u>ile) support is optio | |||||||
| tests: | tests: | ||||||
|   - text: <code>brain(bye)</code> should return a string |   - text: <code>brain(bye)</code> should return a string | ||||||
|     testString: assert(typeof brain(bye) === 'string'); |     testString: assert(typeof brain(bye) === 'string'); | ||||||
|   - text: <code>brain("++++++[>++++++++++<-]>+++++.")</code should return "A" |   - text: <code>brain("++++++[>++++++++++<-]>+++++.")</code> should return "A" | ||||||
|     testString: assert.equal(brain("++++++[>++++++++++<-]>+++++."),"A"); |     testString: assert.equal(brain("++++++[>++++++++++<-]>+++++."),"A"); | ||||||
|   - text: <code>brain(bye)</code> should return <code>Goodbye, World!\\r\\n</code> |   - text: <code>brain(bye)</code> should return <code>Goodbye, World!\\r\\n</code> | ||||||
|     testString: assert.equal(brain(bye), 'Goodbye, World!\r\n'); |     testString: assert.equal(brain(bye), 'Goodbye, World!\r\n'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user