From 182d4f9fdc52bab818066dc4ba763f3de88dff8b Mon Sep 17 00:00:00 2001 From: MANISH-GIRI Date: Mon, 10 Apr 2017 22:16:10 -0400 Subject: [PATCH] Edit test for right span content --- seed/challenges/03-front-end-libraries/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/03-front-end-libraries/bootstrap.json b/seed/challenges/03-front-end-libraries/bootstrap.json index 8480b356c2..dd945cdf9c 100644 --- a/seed/challenges/03-front-end-libraries/bootstrap.json +++ b/seed/challenges/03-front-end-libraries/bootstrap.json @@ -1107,7 +1107,7 @@ ], "tests": [ "assert($(\"p span\") && $(\"p span\").length > 0, 'message: Your span element should be inside your p element.');", - "assert($(\"p span\") && $(\"p span\").text().match(/love/i), 'message: Your span element should have the text love.');", + "assert($(\"p span\") && $(\"p span\").text().match(/love/i) && !$(\"p span\").text().match(/Things cats/i), 'message: Your span element should have just the text love.');", "assert($(\"span\").hasClass(\"text-danger\"), 'message: Your span element should have class text-danger.');", "assert(code.match(/<\\/span>/g) && code.match(//g).length === code.match(/span element has a closing tag.');" ],