From 6bc28033caa423488208b1535dc6b2d85d3733c6 Mon Sep 17 00:00:00 2001 From: Chaim Lando Date: Mon, 24 Oct 2016 15:18:37 +0530 Subject: [PATCH] added a test checking for a number output to stand-in-line --- .../01-front-end-development-certification/basic-javascript.json | 1 + 1 file changed, 1 insertion(+) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 663456310a..bd09ac58a3 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -2794,6 +2794,7 @@ "var testArr = [ 1,2,3,4,5];\n\nfunction nextInLine(arr, item) {\n arr.push(item);\n return arr.shift();\n}" ], "tests": [ + "assert.isNumber(nextInLine([],5), 'message: nextInLine([], 5) should return a number.');", "assert(nextInLine([],1) === 1, 'message: nextInLine([], 1) should return 1');", "assert(nextInLine([2],1) === 2, 'message: nextInLine([2], 1) should return 2');", "assert(nextInLine([5,6,7,8,9],1) === 5, 'message: nextInLine([5,6,7,8,9], 1) should return 5');",