@@ -4,7 +4,7 @@ describe("About Mutability", function() {
44 var aPerson = { firstname : "John" , lastname : "Smith" } ;
55 aPerson . firstname = "Alan" ;
66
7- expect ( aPerson . firstname ) . toBe ( FILL_ME_IN ) ;
7+ expect ( aPerson . firstname ) . toBe ( 'Alan' ) ;
88 } ) ;
99
1010 it ( "should understand that constructed properties are public and mutable" , function ( ) {
@@ -16,7 +16,7 @@ describe("About Mutability", function() {
1616 var aPerson = new Person ( "John" , "Smith" ) ;
1717 aPerson . firstname = "Alan" ;
1818
19- expect ( aPerson . firstname ) . toBe ( FILL_ME_IN ) ;
19+ expect ( aPerson . firstname ) . toBe ( 'Alan' ) ;
2020 } ) ;
2121
2222 it ( "should expect prototype properties to be public and mutable" , function ( ) {
@@ -30,13 +30,13 @@ describe("About Mutability", function() {
3030 } ;
3131
3232 var aPerson = new Person ( "John" , "Smith" ) ;
33- expect ( aPerson . getFullName ( ) ) . toBe ( FILL_ME_IN ) ;
33+ expect ( aPerson . getFullName ( ) ) . toBe ( 'John Smith' ) ;
3434
3535 aPerson . getFullName = function ( ) {
3636 return this . lastname + ", " + this . firstname ;
3737 } ;
3838
39- expect ( aPerson . getFullName ( ) ) . toBe ( FILL_ME_IN ) ;
39+ expect ( aPerson . getFullName ( ) ) . toBe ( 'Smith, John' ) ;
4040 } ) ;
4141
4242 it ( "should know that variables inside a constructor and constructor args are private" , function ( ) {
@@ -54,15 +54,15 @@ describe("About Mutability", function() {
5454 aPerson . lastname = "Andrews" ;
5555 aPerson . fullName = "Penny Andrews" ;
5656
57- expect ( aPerson . getFirstName ( ) ) . toBe ( FILL_ME_IN ) ;
58- expect ( aPerson . getLastName ( ) ) . toBe ( FILL_ME_IN ) ;
59- expect ( aPerson . getFullName ( ) ) . toBe ( FILL_ME_IN ) ;
57+ expect ( aPerson . getFirstName ( ) ) . toBe ( 'John' ) ;
58+ expect ( aPerson . getLastName ( ) ) . toBe ( 'Smith' ) ;
59+ expect ( aPerson . getFullName ( ) ) . toBe ( 'John Smith' ) ;
6060
6161 aPerson . getFullName = function ( ) {
6262 return aPerson . lastname + ", " + aPerson . firstname ;
6363 } ;
6464
65- expect ( aPerson . getFullName ( ) ) . toBe ( FILL_ME_IN ) ;
65+ expect ( aPerson . getFullName ( ) ) . toBe ( 'Andrews, Penny' ) ;
6666 } ) ;
6767
6868} ) ;
0 commit comments