fix(challenge): Stricter tests for "OOP: Iterate Over All Properties"

This commit is contained in:
Samuel Plumppu
2017-02-04 14:29:27 +01:00
parent 682cef18df
commit c3648a7c9e

View File

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