fix(curriculum): improve test robustness (#39004)

* Add: // Only change code...comments

* Allow user to modify bob
This commit is contained in:
Kushagra 2020-06-13 15:17:06 +05:30 committed by GitHub
parent 9a861d1f1c
commit be4070a73d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
</div>
### After Test
<div id='js-teardown'>
```js
if(bob){
bob = new Person("Bob Ross");
}
```
</div>
</section>