diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-11 19:17:52 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-11 19:17:52 -0500 |
| commit | 9dbef9843e2a63c04ed26f7c11d184d8925f2eb5 (patch) | |
| tree | 6aa98dde61530f5b2401ad16b0f881fa9dc9e132 /test | |
| parent | e49d68aa34532bbdf9d8d942f9d7e2532454e55d (diff) | |
| parent | 26c059e0e459aa2088355c82fccfb637991ec229 (diff) | |
determine whats in inventory from ModelColorSize arrays
Diffstat (limited to 'test')
| -rw-r--r-- | test/test/04-cart.js | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/test/test/04-cart.js b/test/test/04-cart.js index 3526d19b..5f6c04d7 100644 --- a/test/test/04-cart.js +++ b/test/test/04-cart.js @@ -120,8 +120,26 @@ describe('shipping', function(){ }) }) describe('#set_box_type()', function(){ + it('set box types', function(done){ + // box might be hard coded to 'standard' ? + var box_type = { + "Type": "Standard" + } + promise(sdk.shipping.set_box_type, { data: box_type }).then(function(data){ + assert(data.Header.StatusCode == 200) + done() + }) + }) }) describe('#get_delivery_types()', function(){ + it('request delivery types', function(done){ + promise(sdk.shipping.get_delivery_types, { data: {} }).then(function(data){ + assert(data.Header.StatusCode == 200) + console.log(data) + done() + }) + }) + }) describe('#set_delivery_type()', function(){ }) @@ -207,7 +225,7 @@ describe('payment', function(){ "Type":"Visa", "Number":"0000567890124285", "ExpirationMonth":"02", - "ExpirationYear":"2015", + "ExpirationYear":"2017", "HolderIsoCountry":"IT", } promise(sdk.payment.add_credit_card, { data: new_card }).then(function(data){ @@ -254,4 +272,4 @@ describe('payment', function(){ describe('checkout', function(){ describe('#finalize()', function(){ }) -})
\ No newline at end of file +}) |
