fix(challenge): Stricter tests for "OOP: Understand Own Properties".

pull/18182/head
Samuel Plumppu 2017-02-04 13:53:22 +01:00
parent 682cef18df
commit 3242afa1c5
1 changed files with 2 additions and 1 deletions

View File

@ -318,7 +318,8 @@
""
],
"tests": [
"assert(ownProps.includes('name') && ownProps.includes('numLegs'), 'message: <code>ownProps</code> should include the values <code>\"numLegs\"</code> and <code>\"name\"</code>.');"
"assert(ownProps.includes('name') && ownProps.includes('numLegs'), 'message: <code>ownProps</code> should include the values <code>\"numLegs\"</code> and <code>\"name\"</code>.');",
"assert(!/\\Object.keys/.test(code), 'message: Solve this challenge without using the built in method <code>Object.keys()</code>.');"
],
"solutions": [],
"hints": [],