From be4070a73dbc05eb4d4dbfef6dbdaee16e0b34a9 Mon Sep 17 00:00:00 2001 From: Kushagra Date: Sat, 13 Jun 2020 15:17:06 +0530 Subject: [PATCH] fix(curriculum): improve test robustness (#39004) * Add: // Only change code...comments * Allow user to modify bob --- .../make-a-person.english.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/make-a-person.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/make-a-person.english.md index 717e35612d..5d147506fa 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/make-a-person.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/make-a-person.english.md @@ -70,6 +70,7 @@ tests: ```js var Person = function(firstAndLast) { + // Only change code below this line // Complete the method below and implement the others similarly this.getFullName = function() { return ""; @@ -83,6 +84,17 @@ bob.getFullName(); +### After Test + +
+ +```js +if(bob){ + bob = new Person("Bob Ross"); +} +``` + +