fix(curriculum): improve test robustness (#39004)
* Add: // Only change code...comments * Allow user to modify bob
This commit is contained in:
parent
9a861d1f1c
commit
be4070a73d
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user