From f2b1d7b1479c5dbaf28ff520c10b80dab547c8d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20J=C3=B8rgensen?= <28780271+lasjorg@users.noreply.github.com> Date: Thu, 21 Jan 2021 19:52:52 +0100 Subject: [PATCH] fix(challenge): Assert arrays contain expected values (#40693) --- .../iterate-over-all-properties.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties.md index a9650a8201..bc6aa77d26 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties.md @@ -44,16 +44,16 @@ Add all of the `own` properties of `beagle` to the array `ownProps`. Add all of # --hints-- -The `ownProps` array should include `"name"`. +The `ownProps` array should only contain `"name"`. ```js -assert(ownProps.indexOf('name') !== -1); +assert.deepEqual(ownProps, ['name']); ``` -The `prototypeProps` array should include `"numLegs"`. +The `prototypeProps` array should only contain `"numLegs"`. ```js -assert(prototypeProps.indexOf('numLegs') !== -1); +assert.deepEqual(prototypeProps, ['numLegs']); ``` You should solve this challenge without using the built in method `Object.keys()`.