From 2f34ffa88fd7badb5e70dbe3f4a4efee5ec4bc2f Mon Sep 17 00:00:00 2001 From: Pranay Kumar Date: Thu, 27 Oct 2016 15:25:40 -0700 Subject: [PATCH] Added test: solution uses push for an array --- .../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 bd09ac58a3..bfc50fbd81 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -5202,6 +5202,7 @@ ], "tests": [ "assert(code.match(/for\\s*\\(/g).length > 1, 'message: You should be using a for loop for this.');", + "assert(code.match(/myArray.push/), 'message: You should be using the array method push.');", "assert.deepEqual(myArray, [9,7,5,3,1], 'message: myArray should equal [9,7,5,3,1].');" ], "type": "waypoint",