diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-11-08 11:18:58 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-11-08 11:18:58 -0500 |
| commit | f0f43ac073226da65475560c05964c6993540c54 (patch) | |
| tree | dfb4c2f913ba5a65c602e832548c8783d95ffd84 /test | |
| parent | 8b0d192d82bf12f3d82be6e9447918521e99d5ca (diff) | |
| parent | a3b4833243672f75e747db8f2a94695ff87cf83b (diff) | |
merge
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() }) }) }) |
