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
parent
0b67e313f7
commit
7707b180bb
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue