summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test/04-cart.js22
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
+})