From 8b79a56135efb1a4917e06e504b8ae1bc24722c9 Mon Sep 17 00:00:00 2001
From: Quincy Larson h1
tag's text to say \"Hello World\" instead of \"Hello\"."
],
"tests": [
- "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')"
+ "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1
element should have the text \"Hello World\"')"
],
"challengeSeed": [
"Hello
"
@@ -45,9 +45,9 @@
],
"tests": [
"assert(($('h2').length > 0), 'Create an h2
element.')",
- "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your h2 element with a closing tag.');",
- "assert.isTrue((/cat(\\s)?photo(\\s)?app/gi).test($('h2').text()), 'Your h2 element should have the text \"CatPhotoApp\"')",
- "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')"
+ "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your h2
element with a closing tag.')",
+ "assert.isTrue((/cat(\\s)?photo(\\s)?app/gi).test($('h2').text()), 'Your h2
element should have the text \"CatPhotoApp\"')",
+ "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1
element should have the text \"Hello World\"')"
],
"challengeSeed": [
"Hello World
"
@@ -74,9 +74,9 @@
"You can create a paragraph element like so: <p>I'm a p tag!</p>
"
],
"tests": [
- "assert(($('p').length > 0), 'Create a paragraph element.')",
- "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your paragraph element should have the text \"Hello Paragraph\"')",
- "assert(new RegExp('
p
element.')",
+ "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your p
element should have the text \"Hello Paragraph\"')",
+ "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your p
element with a closing tag.')"
],
"challengeSeed": [
"self-closing
element tags soon."
],
"tests": [
- "assert(($('br').length > 0), 'You should have a br element between your h2 and paragraph elements.')"
+ "assert(($('br').length > 0), 'Add a br
element between your h2
and p
elements.')"
],
"challengeSeed": [
"<!--
and end a comment with -->
."
],
"tests": [
- "assert($('h1').length > 0, 'The h1 element should not be commented. It should be visible in the browser.')",
- "assert($('h2').length > 0, 'The h2 element should not be commented. It should be visible in the browser.')",
- "assert($('p').length > 0, 'The paragraph element should not be commented. It should be visible in the browser.')"
+ "assert($('h1').length > 0, 'Your h1
element should not be commented. It should be visible in the browser.')",
+ "assert($('h2').length > 0, 'Your h2
element should not be commented. It should be visible in the browser.')",
+ "assert($('p').length > 0, 'Your p
element should not be commented. It should be visible in the browser.')",
+ "assert(!new RegExp('-->', 'gi').test(editor), 'Be sure to delete the -->
that ends the comment.')"
],
"challengeSeed": [
"