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 a2e7ac3309..00126a9586 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
@@ -334,7 +334,7 @@
""
],
"tests": [
- "assert(ownProps.includes('name') && ownProps.includes('numLegs'), 'message: ownProps
should include the values \"numLegs\"
and \"name\"
.');",
+ "assert(ownProps.indexOf('name') !== -1 && ownProps.indexOf('numLegs') !== -1, '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": [
@@ -414,8 +414,8 @@
""
],
"tests": [
- "assert(ownProps.includes('name'), 'message: The ownProps
array should include \"name\"
.');",
- "assert(prototypeProps.includes('numLegs'), 'message: The prototypeProps
array should include \"numLegs\"
.');",
+ "assert(ownProps.indexOf('name') !== -1, 'message: The ownProps
array should include \"name\"
.');",
+ "assert(prototypeProps.indexOf('numLegs') !== -1, 'message: The prototypeProps
array should include \"numLegs\"
.');",
"assert(!/\\Object.keys/.test(code), 'message: Solve this challenge without using the built in method Object.keys()
.');"
],
"solutions": [
diff --git a/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json b/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json
index 244de77b4d..faf6eb9a81 100644
--- a/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json
+++ b/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json
@@ -2579,9 +2579,9 @@
],
"tests": [
"assert(Object.keys(undirectedAdjList).length === 4, 'message: undirectedAdjList
should only contain four nodes.');",
- "assert(undirectedAdjList.James.includes(\"Jeff\") && undirectedAdjList.Jeff.includes(\"James\"), 'message: There should be an edge between Jeff
and James
.');",
- "assert(undirectedAdjList.Jill.includes(\"Jenny\") && undirectedAdjList.Jill.includes(\"Jenny\"), 'message: There should be an edge between Jill
and Jenny
.');",
- "assert(undirectedAdjList.Jeff.includes(\"Jenny\") && undirectedAdjList.Jenny.includes(\"Jeff\"), 'message: There should be an edge between Jeff
and Jenny
.');"
+ "assert(undirectedAdjList.James.indexOf(\"Jeff\") !== -1 && undirectedAdjList.Jeff.indexOf(\"James\") !== -1, 'message: There should be an edge between Jeff
and James
.');",
+ "assert(undirectedAdjList.Jill.indexOf(\"Jenny\") !== -1 && undirectedAdjList.Jill.indexOf(\"Jenny\") !== -1, 'message: There should be an edge between Jill
and Jenny
.');",
+ "assert(undirectedAdjList.Jeff.indexOf(\"Jenny\") !== -1 && undirectedAdjList.Jenny.indexOf(\"Jeff\") !== -1, 'message: There should be an edge between Jeff
and Jenny
.');"
],
"type": "waypoint",
"releasedOn": "Feb 17, 2017",