From c3648a7c9e62c59ab40c688af80bedfebdb9387e Mon Sep 17 00:00:00 2001 From: Samuel Plumppu Date: Sat, 4 Feb 2017 14:29:27 +0100 Subject: [PATCH] fix(challenge): Stricter tests for "OOP: Iterate Over All Properties" --- .../object-oriented-programming.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json b/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json index 1b48605dce..2177997691 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json +++ b/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json @@ -393,7 +393,8 @@ ], "tests": [ "assert(ownProps.includes('name'), 'message: The ownProps array should include \"name\".');", - "assert(prototypeProps.includes('numLegs'), 'message: The prototypeProps array should include \"numLegs\".');" + "assert(prototypeProps.includes('numLegs'), 'message: The prototypeProps array should include \"numLegs\".');", + "assert(!/\\Object.keys/.test(code), 'message: Solve this challenge without using the built in method Object.keys().');" ], "solutions": [], "hints": [],