@@ -3,7 +3,7 @@ function Muppet(age, hobby) {
33 this . hobby = hobby ;
44
55 this . answerNanny = function ( ) {
6- return "Everything's cool!" ;
6+ return "Everything's cool!" ;
77 }
88}
99
@@ -21,24 +21,24 @@ SwedishChef.prototype = new Muppet();
2121describe ( "About inheritance" , function ( ) {
2222 beforeEach ( function ( ) {
2323 this . muppet = new Muppet ( 2 , "coding" ) ;
24- this . swedishChef = new SwedishChef ( 2 , "cooking" , "chillin" ) ;
24+ this . swedishChef = new SwedishChef ( 2 , "cooking" , "chillin" ) ;
2525 } ) ;
2626
2727 it ( "should be able to call a method on the derived object" , function ( ) {
28- expect ( this . swedishChef . cook ( ) ) . toEqual ( FILL_ME_IN ) ;
28+ expect ( this . swedishChef . cook ( ) ) . toEqual ( "Mmmm soup!" ) ;
2929 } ) ;
3030
3131 it ( "should be able to call a method on the base object" , function ( ) {
32- expect ( this . swedishChef . answerNanny ( ) ) . toEqual ( FILL_ME_IN ) ;
32+ expect ( this . swedishChef . answerNanny ( ) ) . toEqual ( "Everything's cool!" ) ;
3333 } ) ;
3434
3535 it ( "should set constructor parameters on the base object" , function ( ) {
36- expect ( this . swedishChef . age ) . toEqual ( FILL_ME_IN ) ;
37- expect ( this . swedishChef . hobby ) . toEqual ( FILL_ME_IN ) ;
36+ expect ( this . swedishChef . age ) . toEqual ( 2 ) ;
37+ expect ( this . swedishChef . hobby ) . toEqual ( "cooking" ) ;
3838 } ) ;
3939
4040 it ( "should set constructor parameters on the derived object" , function ( ) {
41- expect ( this . swedishChef . mood ) . toEqual ( FILL_ME_IN ) ;
41+ expect ( this . swedishChef . mood ) . toEqual ( "chillin" ) ;
4242 } ) ;
4343} ) ;
4444
0 commit comments