From e01826e38e528ce3e84d1813e795df45bbf83503 Mon Sep 17 00:00:00 2001 From: LumenTeun Date: Sun, 31 May 2015 14:18:08 +0200 Subject: [PATCH] Improves 'Create a Bootstrap Button' --- seed_data/challenges/bootstrap.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed_data/challenges/bootstrap.json b/seed_data/challenges/bootstrap.json index 58d8aa5dbe..92190cceeb 100644 --- a/seed_data/challenges/bootstrap.json +++ b/seed_data/challenges/bootstrap.json @@ -180,8 +180,8 @@ "Bootstrap has its own button styles, which look much better than the plain HTML ones." ], "tests": [ - "assert($('.btn').length > 0, 'your new button should have the class \"btn\".');", - "assert(new RegExp('like this photo','gi').test($('.btn').text()), 'your button should have the text \"like this photo\"');" + "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\".')" ], "challengeSeed": [ "",