fix(curriculum): improve test robustness (#39004)
* Add: // Only change code...comments * Allow user to modify bob
This commit is contained in:
@ -70,6 +70,7 @@ tests:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
var Person = function(firstAndLast) {
|
var Person = function(firstAndLast) {
|
||||||
|
// Only change code below this line
|
||||||
// Complete the method below and implement the others similarly
|
// Complete the method below and implement the others similarly
|
||||||
this.getFullName = function() {
|
this.getFullName = function() {
|
||||||
return "";
|
return "";
|
||||||
@ -83,6 +84,17 @@ bob.getFullName();
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
### After Test
|
||||||
|
|
||||||
|
<div id='js-teardown'>
|
||||||
|
|
||||||
|
```js
|
||||||
|
if(bob){
|
||||||
|
bob = new Person("Bob Ross");
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user