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.
This commit is contained in:
parent
0b67e313f7
commit
7707b180bb
@ -1195,6 +1195,11 @@
|
|||||||
"text": "<code>Vegetable</code> can be instantiated.",
|
"text": "<code>Vegetable</code> can be instantiated.",
|
||||||
"testString":
|
"testString":
|
||||||
"assert(() => {const a = new Vegetable(\"apple\"); return typeof a === 'object';},'<code>Vegetable</code> can be instantiated.');"
|
"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",
|
"releasedOn": "Feb 17, 2017",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user