@@ -12,7 +12,7 @@ describe('AuthorizeNet service', function () {
12
12
13
13
//to avoid duplicate transaction we change the amount
14
14
function randomAmount ( ) {
15
- return Math . ceil ( Math . random ( ) * 100 ) ;
15
+ return Math . ceil ( Math . random ( ) * 300 ) ;
16
16
}
17
17
18
18
beforeEach ( function ( ) {
@@ -293,7 +293,7 @@ describe('AuthorizeNet service', function () {
293
293
294
294
it ( 'should create a subscription without trial period' , function ( done ) {
295
295
var subscription = new SubscriptionPlan ( {
296
- amount : Math . floor ( Math . random ( ) * 100 )
296
+ amount : Math . floor ( Math . random ( ) * 300 )
297
297
} )
298
298
. withIterationCount ( '12' )
299
299
. withPeriodLength ( 1 )
@@ -368,7 +368,7 @@ describe('AuthorizeNet service', function () {
368
368
var billing = {
369
369
customerFirstName : 'bob' ,
370
370
customerLastName : 'leponge' ,
371
-
371
+ customerEmail :
'[email protected] '
372
372
} ;
373
373
374
374
var options = {
@@ -397,7 +397,7 @@ describe('AuthorizeNet service', function () {
397
397
var billing = {
398
398
customerFirstName : 'bob' ,
399
399
customerLastName : 'leponge' ,
400
-
400
+ customerEmail :
'[email protected] '
401
401
} ;
402
402
403
403
service . createCustomerProfile ( cc , billing )
@@ -426,7 +426,7 @@ describe('AuthorizeNet service', function () {
426
426
var billing = {
427
427
customerFirstName : 'bob' ,
428
428
customerLastName : 'leponge' ,
429
- email :
random + '[email protected] '
429
+ customerEmail :
random + '[email protected] '
430
430
} ;
431
431
432
432
var profId ;
@@ -466,7 +466,7 @@ describe('AuthorizeNet service', function () {
466
466
var billing = {
467
467
customerFirstName : 'bob' ,
468
468
customerLastName : 'leponge' ,
469
- email :
random + '[email protected] '
469
+ customerEmail :
random + '[email protected] '
470
470
} ;
471
471
472
472
var options = {
0 commit comments