fix(challenge): Assert arrays contain expected values (#40693)

This commit is contained in:
Lasse Jørgensen
2021-01-21 19:52:52 +01:00
committed by GitHub
parent a38922536c
commit f2b1d7b147

View File

@ -44,16 +44,16 @@ Add all of the `own` properties of `beagle` to the array `ownProps`. Add all of
# --hints-- # --hints--
The `ownProps` array should include `"name"`. The `ownProps` array should only contain `"name"`.
```js ```js
assert(ownProps.indexOf('name') !== -1); assert.deepEqual(ownProps, ['name']);
``` ```
The `prototypeProps` array should include `"numLegs"`. The `prototypeProps` array should only contain `"numLegs"`.
```js ```js
assert(prototypeProps.indexOf('numLegs') !== -1); assert.deepEqual(prototypeProps, ['numLegs']);
``` ```
You should solve this challenge without using the built in method `Object.keys()`. You should solve this challenge without using the built in method `Object.keys()`.