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.
pull/18182/head
Hadrien Allemon 2018-07-28 17:27:32 +02:00 committed by Kristofer Koishigawa
parent 0b67e313f7
commit 7707b180bb
1 changed files with 5 additions and 0 deletions

View File

@ -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",