From 3242afa1c5b8ace607dd72d105aa904cbd782604 Mon Sep 17 00:00:00 2001 From: Samuel Plumppu Date: Sat, 4 Feb 2017 13:53:22 +0100 Subject: [PATCH] fix(challenge): Stricter tests for "OOP: Understand Own 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..d0d869bc2c 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 @@ -318,7 +318,8 @@ "" ], "tests": [ - "assert(ownProps.includes('name') && ownProps.includes('numLegs'), 'message: ownProps should include the values \"numLegs\" and \"name\".');" + "assert(ownProps.includes('name') && ownProps.includes('numLegs'), 'message: ownProps should include the values \"numLegs\" and \"name\".');", + "assert(!/\\Object.keys/.test(code), 'message: Solve this challenge without using the built in method Object.keys().');" ], "solutions": [], "hints": [],