Skip to content

Commit

Permalink
fix(challenges): insufficient objectives for javascript_algorithm/es6/19
Browse files Browse the repository at this point in the history
The user was able to pass the challenge without building a proper constructor for the class. The new
objective ensure a constructor was built.
  • Loading branch information
HadrienAllemon authored and scissorsneedfoodtoo committed Aug 2, 2018
1 parent 0b67e31 commit 7707b18
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,11 @@
"text": "<code>Vegetable</code> can be instantiated.",
"testString":
"assert(() => {const a = new Vegetable(\"apple\"); return typeof a === 'object';},'<code>Vegetable</code> can be instantiated.');"
},
{
"text": "<code>carrot.name</code> should return <code>carrot</code>.",
"testString":
"assert(carrot.name=='carrot','<code>carrot.name</code> should return <code>carrot</code>.');"
}
],
"releasedOn": "Feb 17, 2017",
Expand Down

0 comments on commit 7707b18

Please sign in to comment.