diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-11-08 11:46:59 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-11-08 11:46:59 -0500 |
| commit | 5fa81da81260d65113f57a293b6256d334fe8e2d (patch) | |
| tree | 01d3dd7ab7a1febccd20de1756d0801a64ae64e9 /test | |
| parent | e5652e9cd560ccda249819857c207643820b075f (diff) | |
| parent | 7773d1d0686de69504e9b820efdb3e94d72eff04 (diff) | |
le build
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test/01-product.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test/01-product.js b/test/test/01-product.js index e45081cd..18ce9aa1 100755 --- a/test/test/01-product.js +++ b/test/test/01-product.js @@ -11,11 +11,13 @@ describe('product', function(){ describe('#collection()', function(){ it('returns a collection', function(done){ promise(sdk.product.collection).then(function(data){ +console.log(data) assert(data.Header.StatusCode == 200) assert(data.SearchResponseFull.Results.Items.length > 0) test_item = data.SearchResponseFull.Results.Items[0] done() }).error(function(error){ + console.log(error) done() }) }) @@ -24,9 +26,13 @@ describe('product', function(){ describe('#item()', function(){ it('returns an item', function(done){ promise(sdk.product.item, { code: test_item['Code8'] }).then(function(data){ +console.log(data) assert(data.Header.StatusCode == 200) assert('Item' in data) done() + }).error(function(error){ + console.log(error) + done() }) }) }) |
