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": [],