diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index 6606b44f6e..93bd74a5d3 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -628,8 +628,7 @@ " border-width: 10px;", " }", "", - "
lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
", "lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
", "named anchor
.",
+ "Sometimes you want to add anchor elements
to your website before you know where they will link.",
+ "This is also handy when you're changing the behavior of a link using jQuery
, which we'll learn about later.",
+ "Replace the href in the link to freecodecamp.com with a hash symbol to turn it into a named anchor
."
],
"tests": [
- "expect($('h1')).to.have.class('text-center');",
- "expect($('h1')).to.have.text('hello world');"
+ "expect((/this link leads nowhere/gi).test($('a').text())).to.be.true;",
+ "expect($('a').filter(function(index) { return /#/gi.test($('a')[index]); }).length).to.eql(1);"
],
"challengeSeed": [
"",
- "lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
", + "anchor tag
that leads nowhere.",
+ "You can make elements into links by wrapping them in an anchor tag
.",
+ "Check out the example snow-colored cat's photo. When you hover over it with your cursor, you'll see the finger pointer you usually see when you hover over a link. The photo is now a link.",
+ "Wrap your gray cat's photo in an anchor tag
",
+ "Use the hash symbol as the anchor tag
's href
."
+ ],
+ "tests": [
+ "expect($('a').filter(function(index) { return /#/gi.test($('a')[index]); }).length).to.eql(2);"
+ ],
+ "challengeSeed": [
+ "",
+ "