@@ -8,12 +8,12 @@ describe("About Objects", function () {
88 } ) ;
99
1010 it ( "should confirm objects are collections of properties" , function ( ) {
11- expect ( meglomaniac . mastermind ) . toBe ( FILL_ME_IN ) ;
11+ expect ( meglomaniac . mastermind ) . toBe ( 'Joker' ) ;
1212 } ) ;
1313
1414 it ( "should confirm that properties are case sensitive" , function ( ) {
15- expect ( meglomaniac . henchwoman ) . toBe ( FILL_ME_IN ) ;
16- expect ( meglomaniac . henchWoman ) . toBe ( FILL_ME_IN ) ;
15+ expect ( meglomaniac . henchwoman ) . toBe ( 'Harley' ) ;
16+ expect ( meglomaniac . henchWoman ) . toBe ( undefined ) ;
1717 } ) ;
1818 } ) ;
1919
@@ -29,7 +29,7 @@ describe("About Objects", function () {
2929 } ;
3030
3131 var battleCry = meglomaniac . battleCry ( 4 ) ;
32- expect ( FILL_ME_IN ) . toMatch ( battleCry ) ;
32+ expect ( 'They are Pinky and the Brain Brain Brain Brain Brain' ) . toMatch ( battleCry ) ;
3333 } ) ;
3434
3535 it ( "should confirm that when a function is attached to an object, 'this' refers to the object" , function ( ) {
@@ -44,8 +44,8 @@ describe("About Objects", function () {
4444 }
4545 } ;
4646
47- expect ( currentYear ) . toBe ( FILL_ME_IN ) ;
48- expect ( meglomaniac . calculateAge ( ) ) . toBe ( FILL_ME_IN ) ;
47+ expect ( currentYear ) . toBe ( 2015 ) ;
48+ expect ( meglomaniac . calculateAge ( ) ) . toBe ( 45 ) ;
4949 } ) ;
5050
5151 describe ( "'in' keyword" , function ( ) {
@@ -62,27 +62,27 @@ describe("About Objects", function () {
6262
6363 var hasBomb = "theBomb" in meglomaniac ;
6464
65- expect ( hasBomb ) . toBe ( FILL_ME_IN ) ;
65+ expect ( hasBomb ) . toBe ( true ) ;
6666 } ) ;
6767
6868 it ( "should not have the detonator however" , function ( ) {
6969
7070 var hasDetonator = "theDetonator" in meglomaniac ;
7171
72- expect ( hasDetonator ) . toBe ( FILL_ME_IN ) ;
72+ expect ( hasDetonator ) . toBe ( false ) ;
7373 } ) ;
7474 } ) ;
7575
7676 it ( "should know that properties can be added and deleted" , function ( ) {
7777 var meglomaniac = { mastermind : "Agent Smith" , henchman : "Agent Smith" } ;
7878
79- expect ( "secretary" in meglomaniac ) . toBe ( FILL_ME_IN ) ;
79+ expect ( "secretary" in meglomaniac ) . toBe ( false ) ;
8080
8181 meglomaniac . secretary = "Agent Smith" ;
82- expect ( "secretary" in meglomaniac ) . toBe ( FILL_ME_IN ) ;
82+ expect ( "secretary" in meglomaniac ) . toBe ( true ) ;
8383
8484 delete meglomaniac . henchman ;
85- expect ( "henchman" in meglomaniac ) . toBe ( FILL_ME_IN ) ;
85+ expect ( "henchman" in meglomaniac ) . toBe ( false ) ;
8686 } ) ;
8787
8888
@@ -96,14 +96,14 @@ describe("About Objects", function () {
9696 var colouredCircle = new Circle ( 5 ) ;
9797 colouredCircle . colour = "red" ;
9898
99- expect ( simpleCircle . colour ) . toBe ( FILL_ME_IN ) ;
100- expect ( colouredCircle . colour ) . toBe ( FILL_ME_IN ) ;
99+ expect ( simpleCircle . colour ) . toBe ( undefined ) ;
100+ expect ( colouredCircle . colour ) . toBe ( 'red' ) ;
101101
102102 Circle . prototype . describe = function ( ) {
103103 return "This circle has a radius of: " + this . radius ;
104104 } ;
105105
106- expect ( simpleCircle . describe ( ) ) . toBe ( FILL_ME_IN ) ;
107- expect ( colouredCircle . describe ( ) ) . toBe ( FILL_ME_IN ) ;
106+ expect ( simpleCircle . describe ( ) ) . toBe ( 'This circle has a radius of: 10' ) ;
107+ expect ( colouredCircle . describe ( ) ) . toBe ( 'This circle has a radius of: 5' ) ;
108108 } ) ;
109109} ) ;
0 commit comments