From 44d54b7f69016a530eca845f9ec3fa6d1331d58d Mon Sep 17 00:00:00 2001 From: Aniruddh Agarwal Date: Wed, 9 Sep 2015 12:31:42 +0800 Subject: [PATCH] fixed test descriptions in OOJavascript waypoint The first and the second waypoints in the Object Orientated and Functional Programming section had errors in the test descriptions closes #3172 --- ...object-oriented-and-functional-programming.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/seed/challenges/object-oriented-and-functional-programming.json b/seed/challenges/object-oriented-and-functional-programming.json index b7701304f1..bb399a6a3c 100644 --- a/seed/challenges/object-oriented-and-functional-programming.json +++ b/seed/challenges/object-oriented-and-functional-programming.json @@ -20,9 +20,9 @@ "Give your motorBike object a wheels, engines and seats attribute and set them to numbers." ], "tests":[ - "assert(typeof(motorBike.engines) === 'number', 'engines should be have a engines attribute set to a number.');", - "assert(typeof(motorBike.wheels) === 'number', 'wheels should be have a engines attribute set to a number.');", - "assert(typeof(motorBike.seats) === 'number', 'seats should be have a engines attribute set to a number.');" + "assert(typeof(motorBike.engines) === 'number', 'motorBike should have a engines attribute set to a number.');", + "assert(typeof(motorBike.wheels) === 'number', 'motorBike should have a wheels attribute set to a number.');", + "assert(typeof(motorBike.seats) === 'number', 'motorBike should have a seats attribute set to a number.');" ], "challengeSeed":[ "//Here is a sample Object", @@ -54,12 +54,12 @@ "difficulty":0, "description":[ "We are also able to create objects using constructor functions.", - "Give your motorBike object a wheels, engines and seats attribute and set them to numbers." + "Give your myMotorBike object a wheels, engines and seats attribute and set them to numbers." ], "tests":[ - "assert(typeof((new MotorBike()).engines) === 'number', 'engines should be have a engines attribute set to a number.');", - "assert(typeof((new MotorBike()).wheels) === 'number', 'wheels should be have a engines attribute set to a number.');", - "assert(typeof((new MotorBike()).seats) === 'number', 'seats should be have a engines attribute set to a number.');" + "assert(typeof((new MotorBike()).engines) === 'number', 'myMotorBike should have a engines attribute set to a number.');", + "assert(typeof((new MotorBike()).wheels) === 'number', 'myMotorBike should have a wheels attribute set to a number.');", + "assert(typeof((new MotorBike()).seats) === 'number', 'myMotorBike should have a seats attribute set to a number.');" ], "challengeSeed":[ "// Let's add the properties engines and seats to the car in the same way that the property wheels has been added below. They should both be numbers.",