diff options
| author | Rene Ae <aehtyb@gmail.com> | 2015-11-11 20:26:03 -0600 |
|---|---|---|
| committer | Rene Ae <aehtyb@gmail.com> | 2015-11-11 20:26:03 -0600 |
| commit | e8a2441a1d53648906904d0e7e048502c2eca6e0 (patch) | |
| tree | b69377fec7ee5c5cc2df2590bee8c039863e72d1 | |
| parent | 962b2fe877d761a4abe957d138f7f435a8d62cb0 (diff) | |
tidy up
| -rw-r--r-- | test/test/04-cart.js | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/test/test/04-cart.js b/test/test/04-cart.js index 4457712f..d97b80f8 100644 --- a/test/test/04-cart.js +++ b/test/test/04-cart.js @@ -14,7 +14,6 @@ describe('cart', function(){ sdk.auth.access_token = "45871479f5001afc06e628c7bb8e95ffb1f71df8" sdk.auth.user_id = 374663521 } - describe('#initialize()', function(){ it('initializes the cart', function(done){ promise(sdk.cart.initialize, { data: {} }).then(function(data){ @@ -25,7 +24,6 @@ describe('cart', function(){ }) }) }) - describe('#set_user()', function(){ it('sets user to cart', function(done){ var user_creds = { @@ -38,7 +36,6 @@ describe('cart', function(){ }) }) }) - describe('#add_item()', function(){ it('adds item to cart', function(done){ var product_item = { @@ -51,7 +48,6 @@ describe('cart', function(){ }) }) }) - describe('#delete_item()', function(){ it('removes item from cart', function(done){ var product_item = { @@ -215,7 +211,6 @@ describe('payment', function(){ }) }) - var last_guid describe('#add_credit_card()', function(){ @@ -227,7 +222,6 @@ describe('payment', function(){ "City":"Ferrara", "Province":"FE", "ZipCode":"40200", - "Type":"Visa", "Number":"0000567890124285", "ExpirationMonth":"02", @@ -252,8 +246,7 @@ describe('payment', function(){ done() }) }) - }) - + }) describe('#delete_credit_card()', function(){ it('delete credit card', function(done){ promise(sdk.payment.delete_credit_card, { guid: last_guid }).then(function(data){ @@ -298,7 +291,7 @@ describe('payment', function(){ }) }) - // TODO: list the credit cards on file + // TODO: list the credit cards on file first describe('#use_stored_credit_card()', function(){ /* @@ -315,12 +308,10 @@ describe('payment', function(){ done() }) }) -*/ + */ }) - }) - // sdk.cart.finalize describe('checkout', function(){ |
