Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Commit 7707b18

Browse files
HadrienAllemonscissorsneedfoodtoo
authored andcommitted
fix(challenges): insufficient objectives for javascript_algorithm/es6/19
The user was able to pass the challenge without building a proper constructor for the class. The new objective ensure a constructor was built.
1 parent 0b67e31 commit 7707b18

File tree

1 file changed

+5
-0
lines changed
  • challenges/02-javascript-algorithms-and-data-structures

1 file changed

+5
-0
lines changed

challenges/02-javascript-algorithms-and-data-structures/es6.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,11 @@
11951195
"text": "<code>Vegetable</code> can be instantiated.",
11961196
"testString":
11971197
"assert(() => {const a = new Vegetable(\"apple\"); return typeof a === 'object';},'<code>Vegetable</code> can be instantiated.');"
1198+
},
1199+
{
1200+
"text": "<code>carrot.name</code> should return <code>carrot</code>.",
1201+
"testString":
1202+
"assert(carrot.name=='carrot','<code>carrot.name</code> should return <code>carrot</code>.');"
11981203
}
11991204
],
12001205
"releasedOn": "Feb 17, 2017",

0 commit comments

Comments
 (0)