@@ -2288,7 +2288,7 @@ describe("stub", function () {
22882288 prop : "foo"
22892289 } ;
22902290
2291- createStub ( myObj , "prop" ) . get ( function ( ) {
2291+ createStub ( myObj , "prop" ) . get ( function getterFn ( ) {
22922292 return "bar" ;
22932293 } ) ;
22942294
@@ -2302,7 +2302,7 @@ describe("stub", function () {
23022302 }
23032303 } ;
23042304
2305- createStub ( myObj , "prop" ) . get ( function ( ) {
2305+ createStub ( myObj , "prop" ) . get ( function getterFn ( ) {
23062306 return "bar" ;
23072307 } ) ;
23082308
@@ -2316,7 +2316,7 @@ describe("stub", function () {
23162316 }
23172317 } ;
23182318
2319- createStub ( myObj , "prop" ) . get ( function ( ) {
2319+ createStub ( myObj , "prop" ) . get ( function getterFn ( ) {
23202320 return "bar" ;
23212321 } ) ;
23222322
@@ -2326,15 +2326,15 @@ describe("stub", function () {
23262326 it ( "can set getters for non-existing properties" , function ( ) {
23272327 var myObj = { } ;
23282328
2329- createStub ( myObj , "prop" ) . get ( function ( ) {
2329+ createStub ( myObj , "prop" ) . get ( function getterFn ( ) {
23302330 return "bar" ;
23312331 } ) ;
23322332
23332333 assert . equals ( myObj . prop , "bar" ) ;
23342334 } ) ;
23352335
23362336 it ( "can restore stubbed setters for functions" , function ( ) {
2337- var propFn = function ( ) {
2337+ var propFn = function propFn ( ) {
23382338 return "bar" ;
23392339 } ;
23402340
@@ -2344,7 +2344,7 @@ describe("stub", function () {
23442344
23452345 var stub = createStub ( myObj , "prop" ) ;
23462346
2347- stub . get ( function ( ) {
2347+ stub . get ( function getterFn ( ) {
23482348 return "baz" ;
23492349 } ) ;
23502350
@@ -2362,7 +2362,7 @@ describe("stub", function () {
23622362
23632363 var stub = createStub ( myObj , "prop" ) ;
23642364
2365- stub . get ( function ( ) {
2365+ stub . get ( function getterFn ( ) {
23662366 return "baz" ;
23672367 } ) ;
23682368
@@ -2378,7 +2378,7 @@ describe("stub", function () {
23782378 prop : "foo"
23792379 } ;
23802380
2381- createStub ( myObj , "prop" ) . set ( function ( ) {
2381+ createStub ( myObj , "prop" ) . set ( function setterFn ( ) {
23822382 myObj . example = "bar" ;
23832383 } ) ;
23842384
@@ -2394,7 +2394,7 @@ describe("stub", function () {
23942394 }
23952395 } ;
23962396
2397- createStub ( myObj , "prop" ) . set ( function ( ) {
2397+ createStub ( myObj , "prop" ) . set ( function setterFn ( ) {
23982398 myObj . example = "bar" ;
23992399 } ) ;
24002400
@@ -2410,7 +2410,7 @@ describe("stub", function () {
24102410 }
24112411 } ;
24122412
2413- createStub ( myObj , "prop" ) . set ( function ( ) {
2413+ createStub ( myObj , "prop" ) . set ( function setterFn ( ) {
24142414 myObj . example = "bar" ;
24152415 } ) ;
24162416
@@ -2422,7 +2422,7 @@ describe("stub", function () {
24222422 it ( "can set setters for non-existing properties" , function ( ) {
24232423 var myObj = { } ;
24242424
2425- createStub ( myObj , "prop" ) . set ( function ( ) {
2425+ createStub ( myObj , "prop" ) . set ( function setterFn ( ) {
24262426 myObj . example = "bar" ;
24272427 } ) ;
24282428
@@ -2432,7 +2432,7 @@ describe("stub", function () {
24322432 } ) ;
24332433
24342434 it ( "can restore stubbed setters for functions" , function ( ) {
2435- var propFn = function ( ) {
2435+ var propFn = function propFn ( ) {
24362436 return "bar" ;
24372437 } ;
24382438
@@ -2442,7 +2442,7 @@ describe("stub", function () {
24422442
24432443 var stub = createStub ( myObj , "prop" ) ;
24442444
2445- stub . set ( function ( ) {
2445+ stub . set ( function setterFn ( ) {
24462446 myObj . otherProp = "baz" ;
24472447 } ) ;
24482448
@@ -2461,7 +2461,7 @@ describe("stub", function () {
24612461
24622462 var stub = createStub ( myObj , "prop" ) ;
24632463
2464- stub . set ( function ( ) {
2464+ stub . set ( function setterFn ( ) {
24652465 myObj . otherProp = "baz" ;
24662466 } ) ;
24672467
0 commit comments