From 7707b180bbfea6acbbbf91e11a8eca289650c681 Mon Sep 17 00:00:00 2001 From: Hadrien Allemon Date: Sat, 28 Jul 2018 17:27:32 +0200 Subject: [PATCH] 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. --- .../02-javascript-algorithms-and-data-structures/es6.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/challenges/02-javascript-algorithms-and-data-structures/es6.json b/challenges/02-javascript-algorithms-and-data-structures/es6.json index 3528bd660e..a77bf08df3 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -1195,6 +1195,11 @@ "text": "Vegetable can be instantiated.", "testString": "assert(() => {const a = new Vegetable(\"apple\"); return typeof a === 'object';},'Vegetable can be instantiated.');" + }, + { + "text": "carrot.name should return carrot.", + "testString": + "assert(carrot.name=='carrot','carrot.name should return carrot.');" } ], "releasedOn": "Feb 17, 2017",