From 094a48f0a9b315a2c2b3911a864607fa22407113 Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Sat, 2 Apr 2016 00:53:53 -0700 Subject: [PATCH] Accept >=1 versus >=5 returns in chaining if else --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index ceb80d0d3b..55ead0dcc1 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -3345,7 +3345,7 @@ "tests": [ "assert(code.match(/else/g).length > 3, 'message: You should have at least four else statements');", "assert(code.match(/if/g).length > 3, 'message: You should have at least four if statements');", - "assert(code.match(/return/g).length >= 5, 'message: You should have at least five return statements');", + "assert(code.match(/return/g).length >= 1, 'message: You should have at least one return statement');", "assert(myTest(0) === \"Tiny\", 'message: myTest(0) should return \"Tiny\"');", "assert(myTest(4) === \"Tiny\", 'message: myTest(4) should return \"Tiny\"');", "assert(myTest(5) === \"Small\", 'message: myTest(5) should return \"Small\"');",