From 751a407ef6b4d3de2b766521fe64f54d2604dab5 Mon Sep 17 00:00:00 2001 From: Prateek Date: Mon, 14 Aug 2017 21:41:38 +0530 Subject: [PATCH] Add tests for having single ol and ul element --- .../01-responsive-web-design/basic-html-and-html5.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/seed/challenges/01-responsive-web-design/basic-html-and-html5.json b/seed/challenges/01-responsive-web-design/basic-html-and-html5.json index 4b777e648c..65811ad429 100644 --- a/seed/challenges/01-responsive-web-design/basic-html-and-html5.json +++ b/seed/challenges/01-responsive-web-design/basic-html-and-html5.json @@ -780,7 +780,7 @@ "

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

", "

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

", "

Meowwww loved it, hated it, loved it, hated it yet spill litter box, scratch at owner, destroy all furniture, especially couch or lay on arms while you're using the keyboard. Missing until dinner time toy mouse squeak roll over. With tail in the air lounge in doorway. Man running from cops stops to pet cats, goes to jail.

", - "

Intently stare at the same spot poop in the plant pot but kitten is playing with dead mouse. Get video posted to internet for chasing red dot leave fur on owners clothes meow to be let out and mesmerizing birds leave fur on owners clothes or favor packaging over toy so purr for no reason. Meow to be let out play time intently sniff hand run outside as soon as door open yet destroy couch.

", + "

Intently stare at the same spot poop in the plant pot but kitten is playing with dead mouse. Get video posted to internet for chasing red dot leave fur on owners clothes meow to be let out and mesmerizing birds leave fur on owners clothes or favor packaging over toy so purr for no reason. Meow to be let out play time intently sniff hand run outside as soon as door open yet destroy couch.

", " ", "", " ", @@ -790,8 +790,8 @@ "assert($('a').length == 1, 'message: There should be only one anchor tag on your page.');", "assert($('footer').length == 1, 'message: There should be only one footer tag on your page.');", "assert($('a').eq(0).attr('href') == \"#footer\", 'message: The a tag should have an href attribute set to \"#footer\".');", - "assert(typeof $('a').eq(0).attr('target') == typeof undefined || $('a').eq(0).attr('target') == true, 'message: The a tag should not have a target attribute');", - "assert($('a').eq(0).text().match(/Jump to Bottom/gi), 'message: The a text should be \"Jump to Bottom\".');", + "assert(typeof $('a').eq(0).attr('target') == typeof undefined || $('a').eq(0).attr('target') == true, 'message: The a tag should not have a target attribute');", + "assert($('a').eq(0).text().match(/Jump to Bottom/gi), 'message: The a text should be \"Jump to Bottom\".');", "assert($('footer').eq(0).attr('id') == \"footer\", 'message: The footer tag should have an id attribute set to \"footer\".');" ], "type": "waypoint", @@ -1159,6 +1159,8 @@ "tests": [ "assert((/Top 3 things cats hate:/i).test($(\"ol\").prev().text()), 'message: You should have an ordered list for \"Top 3 things cats hate:\"');", "assert((/Things cats love:/i).test($(\"ul\").prev().text()), 'message: You should have an unordered list for \"Things cats love:\"');", + "assert.equal($(\"ul\").length, 1, 'message: You should have only one ul element.');", + "assert.equal($(\"ol\").length, 1, 'message: You should have only one ol element.');", "assert.equal($(\"ul li\").length, 3, 'message: You should have three li elements within your ul element.');", "assert.equal($(\"ol li\").length, 3, 'message: You should have three li elements within your ol element.');", "assert(code.match(/<\\/ul>/g) && code.match(/<\\/ul>/g).length === code.match(/