diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/understand-own-properties.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/understand-own-properties.english.md
index 9bb5134dac..6c21fe7527 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/understand-own-properties.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/understand-own-properties.english.md
@@ -25,9 +25,11 @@ Add the own
properties of canary
to the array ow
```yml
tests:
- text: ownProps
should include the values "numLegs"
and "name"
.
- testString: assert(ownProps.indexOf('name') !== -1 && ownProps.indexOf('numLegs') !== -1, 'ownProps
should include the values "numLegs"
and "name"
.');
+ testString: assert(ownProps.indexOf('name') !== -1 && ownProps.indexOf('numLegs') !== -1);
- text: Solve this challenge without using the built in method Object.keys()
.
- testString: assert(!/\Object.keys/.test(code), 'Solve this challenge without using the built in method Object.keys()
.');
+ testString: assert(!/Object(\.keys|\[(['"`])keys\2\])/.test(code));
+ - text: Solve this challenge without hardcoding the ownProps
array.
+ testString: assert(!/\[\s*(?:'|")(?:name|numLegs)|(?:push|concat)\(\s*(?:'|")(?:name|numLegs)/.test(code));
```