mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08:00
fix(challenge): Stricter tests for "OOP: Iterate Over All Properties"
This commit is contained in:
parent
682cef18df
commit
c3648a7c9e
@ -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": [],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user