From 7c5d5cc51aa6764c9112c25a91f06a1111366179 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Thu, 13 Aug 2015 20:58:27 -0700 Subject: [PATCH] finish QAing bootstrap --- challenges/bootstrap.json | 50 ++++++++++++++++++++++------------- challenges/html5-and-css.json | 16 +++++------ 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/challenges/bootstrap.json b/challenges/bootstrap.json index 95160dd9b3..1bf8a55234 100644 --- a/challenges/bootstrap.json +++ b/challenges/bootstrap.json @@ -260,11 +260,11 @@ "difficulty": 2.04, "description": [ "Bootstrap has its own styles for button elements, which look much better than the plain HTML ones.", - "Create a new button element below your large kitten photo. Give it the class \"btn\" and the text of \"like this photo\"." + "Create a new button element below your large kitten photo. Give it the class \"btn\" and the text of \"like\"." ], "tests": [ + "assert(new RegExp(\"like\",\"gi\").test($(\"button\").text()), 'Create a new button element with the text \"Like\".')", "assert($(\"button\").hasClass(\"btn\"), 'Your new button should have the class \"btn\".')", - "assert(new RegExp(\"like this photo\",\"gi\").test($(\"button.btn\").text()), 'Your button should have the text \"like this photo\".')", "assert(editor.match(/<\\/button>/g) && editor.match(/", " ", " ", - "

Things cats love:

", + "

Things cats love:

", "