@@ -470,8 +470,8 @@ describe('auctionmanager.js', function () {
470
470
]
471
471
} ] ;
472
472
adUnitCodes = [ 'adUnit-code' ] ;
473
- auction = auctionModule . createAuction ( { adUnits, adUnitCodes} ) ;
474
- createAuctionStub = sinon . stub ( auctionModule , 'createAuction ' ) ;
473
+ auction = auctionModule . newAuction ( { adUnits, adUnitCodes, callback : function ( ) { } , cbTimeout : 3000 } ) ;
474
+ createAuctionStub = sinon . stub ( auctionModule , 'newAuction ' ) ;
475
475
createAuctionStub . returns ( auction ) ;
476
476
477
477
spec = {
@@ -484,7 +484,7 @@ describe('auctionmanager.js', function () {
484
484
} ) ;
485
485
486
486
afterEach ( ( ) => {
487
- auctionModule . createAuction . restore ( ) ;
487
+ auctionModule . newAuction . restore ( ) ;
488
488
} ) ;
489
489
490
490
it ( 'should return proper price bucket increments for dense mode when cpm is in range 0-3' , ( ) => {
@@ -493,7 +493,7 @@ describe('auctionmanager.js', function () {
493
493
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
494
494
spec . isBidRequestValid . returns ( true ) ;
495
495
spec . interpretResponse . returns ( bids ) ;
496
- auction . callBids ( 3000 ) ;
496
+ auction . callBids ( ) ;
497
497
let registeredBid = auction . getBidsReceived ( ) . pop ( ) ;
498
498
assert . equal ( registeredBid . pbDg , '1.99' , '0 - 3 hits at to 1 cent increment' ) ;
499
499
} ) ;
@@ -504,7 +504,7 @@ describe('auctionmanager.js', function () {
504
504
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
505
505
spec . isBidRequestValid . returns ( true ) ;
506
506
spec . interpretResponse . returns ( bids ) ;
507
- auction . callBids ( 3000 ) ;
507
+ auction . callBids ( ) ;
508
508
let registeredBid = auction . getBidsReceived ( ) . pop ( ) ;
509
509
assert . equal ( registeredBid . pbDg , '4.35' , '3 - 8 hits at 5 cent increment' ) ;
510
510
} ) ;
@@ -515,7 +515,7 @@ describe('auctionmanager.js', function () {
515
515
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
516
516
spec . isBidRequestValid . returns ( true ) ;
517
517
spec . interpretResponse . returns ( bids ) ;
518
- auction . callBids ( 3000 ) ;
518
+ auction . callBids ( ) ;
519
519
let registeredBid = auction . getBidsReceived ( ) . pop ( ) ;
520
520
assert . equal ( registeredBid . pbDg , '19.50' , '8 - 20 hits at 50 cent increment' ) ;
521
521
} ) ;
@@ -526,7 +526,7 @@ describe('auctionmanager.js', function () {
526
526
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
527
527
spec . isBidRequestValid . returns ( true ) ;
528
528
spec . interpretResponse . returns ( bids ) ;
529
- auction . callBids ( 3000 ) ;
529
+ auction . callBids ( ) ;
530
530
let registeredBid = auction . getBidsReceived ( ) . pop ( ) ;
531
531
assert . equal ( registeredBid . pbDg , '20.00' , '20+ caps at 20.00' ) ;
532
532
} ) ;
@@ -537,7 +537,7 @@ describe('auctionmanager.js', function () {
537
537
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
538
538
spec . isBidRequestValid . returns ( true ) ;
539
539
spec . interpretResponse . returns ( bids ) ;
540
- auction . callBids ( 3000 ) ;
540
+ auction . callBids ( ) ;
541
541
let registeredBid = auction . getBidsReceived ( ) . pop ( ) ;
542
542
assert . equal ( registeredBid . adserverTargeting [ `hb_deal` ] , 'test deal' , 'dealId placed in adserverTargeting' ) ;
543
543
} ) ;
@@ -549,7 +549,7 @@ describe('auctionmanager.js', function () {
549
549
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
550
550
spec . isBidRequestValid . returns ( true ) ;
551
551
spec . interpretResponse . returns ( bids ) ;
552
- auction . callBids ( 3000 ) ;
552
+ auction . callBids ( ) ;
553
553
let registeredBid = auction . getBidsReceived ( ) . pop ( ) ;
554
554
assert . equal ( registeredBid . adserverTargeting . hb_bidder , 'sampleBidder' ) ;
555
555
assert . equal ( registeredBid . adserverTargeting . extra , 'stuff' ) ;
@@ -578,7 +578,7 @@ describe('auctionmanager.js', function () {
578
578
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
579
579
spec . isBidRequestValid . returns ( true ) ;
580
580
spec . interpretResponse . returns ( bids1 ) ;
581
- auction . callBids ( 3000 ) ;
581
+ auction . callBids ( ) ;
582
582
assert . equal ( bidsRecCount + 1 , auction . getBidsReceived ( ) . length ) ;
583
583
584
584
utils . getBidRequest . restore ( ) ;
@@ -608,7 +608,7 @@ describe('auctionmanager.js', function () {
608
608
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
609
609
spec . isBidRequestValid . returns ( true ) ;
610
610
spec . interpretResponse . returns ( bids1 ) ;
611
- auction . callBids ( 3000 ) ;
611
+ auction . callBids ( ) ;
612
612
assert . equal ( bidsRecCount , auction . getBidsReceived ( ) . length ) ;
613
613
614
614
utils . getBidRequest . restore ( ) ;
@@ -640,7 +640,7 @@ describe('auctionmanager.js', function () {
640
640
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
641
641
spec . isBidRequestValid . returns ( true ) ;
642
642
spec . interpretResponse . returns ( bids1 ) ;
643
- auction . callBids ( 3000 ) ;
643
+ auction . callBids ( ) ;
644
644
assert . equal ( bidsRecCount + 1 , auction . getBidsReceived ( ) . length ) ;
645
645
646
646
utils . getBidRequest . restore ( ) ;
@@ -685,7 +685,7 @@ describe('auctionmanager.js', function () {
685
685
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
686
686
spec . isBidRequestValid . returns ( true ) ;
687
687
spec . interpretResponse . returns ( bids1 ) ;
688
- auction . callBids ( 3000 ) ;
688
+ auction . callBids ( ) ;
689
689
const addedBid = auction . getBidsReceived ( ) . pop ( ) ;
690
690
assert . equal ( addedBid . renderer . url , 'renderer.js' ) ;
691
691
} ) ;
@@ -729,7 +729,7 @@ describe('auctionmanager.js', function () {
729
729
spec . buildRequests . returns ( [ { 'id' : 123 , 'method' : 'POST' } ] ) ;
730
730
spec . isBidRequestValid . returns ( true ) ;
731
731
spec . interpretResponse . returns ( bids1 ) ;
732
- auction . callBids ( 3000 ) ;
732
+ auction . callBids ( ) ;
733
733
const addedBid = auction . getBidsReceived ( ) . pop ( ) ;
734
734
735
735
assert . equal ( addedBid . width , 300 ) ;
@@ -836,8 +836,8 @@ describe('auctionmanager.js', function () {
836
836
]
837
837
} ] ;
838
838
adUnitCodes = [ 'adUnit-code' , 'adUnit-code-1' ] ;
839
- auction = auctionModule . createAuction ( { adUnits, adUnitCodes} ) ;
840
- createAuctionStub = sinon . stub ( auctionModule , 'createAuction ' ) ;
839
+ auction = auctionModule . newAuction ( { adUnits, adUnitCodes, callback : function ( ) { } , cbTimeout : 3000 } ) ;
840
+ createAuctionStub = sinon . stub ( auctionModule , 'newAuction ' ) ;
841
841
createAuctionStub . returns ( auction ) ;
842
842
843
843
spec = {
@@ -858,7 +858,7 @@ describe('auctionmanager.js', function () {
858
858
} ) ;
859
859
860
860
afterEach ( ( ) => {
861
- auctionModule . createAuction . restore ( ) ;
861
+ auctionModule . newAuction . restore ( ) ;
862
862
} ) ;
863
863
864
864
it ( 'should not alter bid adID' , ( ) => {
@@ -873,7 +873,7 @@ describe('auctionmanager.js', function () {
873
873
spec1 . isBidRequestValid . returns ( true ) ;
874
874
spec1 . interpretResponse . returns ( bids1 ) ;
875
875
876
- auction . callBids ( 3000 ) ;
876
+ auction . callBids ( ) ;
877
877
878
878
const addedBid2 = auction . getBidsReceived ( ) . pop ( ) ;
879
879
assert . equal ( addedBid2 . adId , bids1 [ 0 ] . requestId ) ;
@@ -896,7 +896,7 @@ describe('auctionmanager.js', function () {
896
896
spec1 . isBidRequestValid . returns ( true ) ;
897
897
spec1 . interpretResponse . returns ( bids1 ) ;
898
898
899
- auction . callBids ( 3000 ) ;
899
+ auction . callBids ( ) ;
900
900
901
901
let length = auction . getBidsReceived ( ) . length ;
902
902
const addedBid2 = auction . getBidsReceived ( ) . pop ( ) ;
0 commit comments