From 146eb52345a018dae90fbb70c87793d0847dd135 Mon Sep 17 00:00:00 2001 From: "Alister N. Mada" Date: Tue, 26 Jan 2016 06:31:30 +0700 Subject: [PATCH] Add more test cases for Make Object Properties Private --- .../object-oriented-and-functional-programming.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index c344eb42d4..68cf3b7c23 100644 --- a/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json @@ -281,7 +281,9 @@ "assert(typeof myBike.getGear !== 'undefined' && typeof myBike.getGear === 'function', 'message: The method getGear of myBike should be accessible outside the object.');", "assert(typeof myBike.setGear !== 'undefined' && typeof myBike.setGear === 'function', 'message: The method setGear of myBike should be accessible outside the object.');", "assert(typeof myBike.gear === 'undefined', 'message: myBike.gear should remain undefined.');", - "assert.strictEqual((function () { myBike.setGear(4); return myBike.getGear(); })(), 4, 'message: myBike.getGear() should return 4 after myBike.setGear(4).');" + "assert.strictEqual((function () { myBike.setGear(4); return myBike.getGear(); })(), 4, 'message: myBike.getGear() should return 4 after calling myBike.setGear(4).');", + "assert.strictEqual((function () { myBike.setGear(3); return myBike.getGear(); })(), 3, 'message: myBike.getGear() should return 3 after calling myBike.setGear(3).');", + "assert.strictEqual((function () { myBike.setGear(1); return myBike.getGear(); })(), 1, 'message: myBike.getGear() should return 1 after calling myBike.setGear(1).');" ], "type": "waypoint", "challengeType": 1,